TopDocspublic class TopDocs extends Object implements SerializableExpert: Returned by low-level search implementations. |
Fields Summary |
---|
public int | totalHitsExpert: The total number of hits for the query. | public ScoreDoc[] | scoreDocsExpert: The top hits for the query. | private float | maxScoreExpert: Stores the maximum score value encountered, needed for normalizing. |
Constructors Summary |
---|
TopDocs(int totalHits, ScoreDoc[] scoreDocs, float maxScore)Expert: Constructs a TopDocs.
this.totalHits = totalHits;
this.scoreDocs = scoreDocs;
this.maxScore = maxScore;
|
Methods Summary |
---|
public float | getMaxScore()Expert: Returns the maximum score value encountered.
return maxScore;
| public void | setMaxScore(float maxScore)Expert: Sets the maximum score value encountered.
this.maxScore=maxScore;
|
|