Class MaxScoreCollector

  • All Implemented Interfaces:
    org.apache.lucene.search.Collector, org.apache.lucene.search.LeafCollector

    public class MaxScoreCollector
    extends org.apache.lucene.search.SimpleCollector
    A Collector for the maximum score value.
    • Constructor Detail

      • MaxScoreCollector

        public MaxScoreCollector()
    • Method Detail

      • getMaxScore

        public float getMaxScore()
      • scoreMode

        public org.apache.lucene.search.ScoreMode scoreMode()
      • setScorer

        public void setScorer​(org.apache.lucene.search.Scorable scorer)
                       throws IOException
        Specified by:
        setScorer in interface org.apache.lucene.search.LeafCollector
        Overrides:
        setScorer in class org.apache.lucene.search.SimpleCollector
        Throws:
        IOException
      • collect

        public void collect​(int doc)
                     throws IOException
        Specified by:
        collect in interface org.apache.lucene.search.LeafCollector
        Specified by:
        collect in class org.apache.lucene.search.SimpleCollector
        Throws:
        IOException