Package org.apache.lucene.search
Class TopFieldDocs
java.lang.Object
org.apache.lucene.search.TopDocs
org.apache.lucene.search.TopFieldDocs
Represents hits returned by
IndexSearcher.search(Query,int,Sort)
.-
Field Summary
Modifier and TypeFieldDescriptionThe fields which were used to sort results by. -
Constructor Summary
ConstructorDescriptionTopFieldDocs
(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields) Creates one of these objects. -
Method Summary
-
Field Details
-
fields
The fields which were used to sort results by.
-
-
Constructor Details
-
TopFieldDocs
Creates one of these objects.- Parameters:
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.
-