Class TopFieldDocs

    • Constructor Summary

      Constructors 
      Constructor Description
      TopFieldDocs​(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)
      Creates one of these objects.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fields

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

      • TopFieldDocs

        public TopFieldDocs​(int totalHits,
                            ScoreDoc[] scoreDocs,
                            SortField[] fields,
                            float maxScore)
        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.
        maxScore - The maximum score encountered.