Class TopFieldDocs


public class TopFieldDocs extends TopDocs
Represents hits returned by,int,Sort).
  • Field Details

    • fields

      public SortField[] fields
      The fields which were used to sort results by.
  • Constructor Details

    • TopFieldDocs

      public TopFieldDocs(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields)
      Creates one of these objects.
      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.