public class TopDocs extends Object implements Serializable
Searcher.search(Query,Filter,int)
and Searcher.search(Query,int)
.Modifier and Type | Field and Description |
---|---|
ScoreDoc[] |
scoreDocs
The top hits for the query.
|
int |
totalHits
The total number of hits for the query.
|
Constructor and Description |
---|
TopDocs(int totalHits,
ScoreDoc[] scoreDocs,
float maxScore) |
Modifier and Type | Method and Description |
---|---|
float |
getMaxScore()
Returns the maximum score value encountered.
|
void |
setMaxScore(float maxScore)
Sets the maximum score value encountered.
|
public int totalHits
public ScoreDoc[] scoreDocs
public TopDocs(int totalHits, ScoreDoc[] scoreDocs, float maxScore)
public float getMaxScore()
Float.NaN
.public void setMaxScore(float maxScore)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.