Serializable
public class TopFieldDocs extends TopDocs
Searcher.search(Query,Filter,int,Sort)
.Modifier and Type | Field | Description |
---|---|---|
SortField[] |
fields |
The fields which were used to sort results by.
|
Constructor | Description |
---|---|
TopFieldDocs(int totalHits,
ScoreDoc[] scoreDocs,
SortField[] fields,
float maxScore) |
Creates one of these objects.
|
public SortField[] fields
public TopFieldDocs(int 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-2018 Apache Software Foundation. All Rights Reserved.