public class TopDocs
extends java.lang.Object
implements java.io.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.
|
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.