public class TopDocs
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
ScoreDoc[] |
scoreDocs
Expert: The top hits for the query.
|
int |
totalHits
Expert: The total number of hits for the query.
|
Constructor and Description |
---|
TopDocs(int totalHits,
ScoreDoc[] scoreDocs,
float maxScore)
Expert: Constructs a TopDocs.
|
Modifier and Type | Method and Description |
---|---|
float |
getMaxScore()
Expert: Returns the maximum score value encountered.
|
void |
setMaxScore(float maxScore)
Expert: Sets the maximum score value encountered.
|
public int totalHits
Hits.length()
public ScoreDoc[] scoreDocs
public TopDocs(int totalHits, ScoreDoc[] scoreDocs, float maxScore)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.