public class TopFieldDocs extends TopDocs
IndexSearcher.search(Query,int,Sort).| Modifier and Type | Field and Description |
|---|---|
SortField[] |
fields
The fields which were used to sort results by.
|
| Constructor and Description |
|---|
TopFieldDocs(long totalHits,
ScoreDoc[] scoreDocs,
SortField[] fields,
float maxScore)
Creates one of these objects.
|
getMaxScore, merge, merge, merge, merge, setMaxScorepublic SortField[] fields
public TopFieldDocs(long totalHits,
ScoreDoc[] scoreDocs,
SortField[] fields,
float maxScore)
totalHits - Total number of hits for the query.scoreDocs - The top hits for the query.fields - The sort criteria used to find the top hits.maxScore - The maximum score encountered.Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.