Class TopDocs

    • Field Detail

      • totalHits

        public int totalHits
        The total number of hits for the query.
      • scoreDocs

        public ScoreDoc[] scoreDocs
        The top hits for the query.
    • Constructor Detail

      • TopDocs

        public TopDocs​(int totalHits,
                       ScoreDoc[] scoreDocs,
                       float maxScore)
    • Method Detail

      • getMaxScore

        public float getMaxScore()
        Returns the maximum score value encountered. Note that in case scores are not tracked, this returns Float.NaN.
      • setMaxScore

        public void setMaxScore​(float maxScore)
        Sets the maximum score value encountered.