|Modifier and Type||Field and Description|
The fields which were used to sort results by.
|Constructor and Description|
Creates one of these objects.
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.