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(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-2015 Apache Software Foundation. All Rights Reserved.