|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.TopDocs
public class TopDocs
Represents hits returned by Searcher.search(Query,Filter,int) and Searcher.search(Query,int).
| Field Summary | |
|---|---|
ScoreDoc[] |
scoreDocs
The top hits for the query. |
int |
totalHits
The total number of hits for the query. |
| Constructor Summary | |
|---|---|
TopDocs(int totalHits,
ScoreDoc[] scoreDocs,
float maxScore)
|
|
| Method Summary | |
|---|---|
float |
getMaxScore()
Returns the maximum score value encountered. |
void |
setMaxScore(float maxScore)
Sets the maximum score value encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int totalHits
public ScoreDoc[] scoreDocs
| Constructor Detail |
|---|
public TopDocs(int totalHits,
ScoreDoc[] scoreDocs,
float maxScore)
| Method Detail |
|---|
public float getMaxScore()
Float.NaN.
public void setMaxScore(float maxScore)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||