Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
class |
FieldDoc
Expert: A ScoreDoc which also contains information about
how to sort the referenced document.
|
Modifier and Type | Field and Description |
---|---|
ScoreDoc[] |
TopDocs.scoreDocs
The top hits for the query.
|
Modifier and Type | Method and Description |
---|---|
int |
ScoreDocComparator.compare(ScoreDoc i,
ScoreDoc j)
Deprecated.
Compares two ScoreDoc objects and returns a result indicating their
sort order.
|
protected TopDocs |
TopDocsCollector.newTopDocs(ScoreDoc[] results,
int start)
Returns a
TopDocs instance containing the given results. |
protected TopDocs |
TopFieldCollector.newTopDocs(ScoreDoc[] results,
int start) |
protected TopDocs |
TopScoreDocCollector.newTopDocs(ScoreDoc[] results,
int start) |
protected void |
TopDocsCollector.populateResults(ScoreDoc[] results,
int howMany)
Populates the results array with the ScoreDoc instaces.
|
protected void |
TopFieldCollector.populateResults(ScoreDoc[] results,
int howMany) |
java.lang.Comparable |
ScoreDocComparator.sortValue(ScoreDoc i)
Deprecated.
Returns the value used to sort the given document.
|
Constructor and Description |
---|
TopDocs(int totalHits,
ScoreDoc[] scoreDocs,
float maxScore) |
TopFieldDocs(int totalHits,
ScoreDoc[] scoreDocs,
SortField[] fields,
float maxScore)
Creates one of these objects.
|
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.