Class MinimumScoreCollector

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

    public class MinimumScoreCollector
    extends org.apache.lucene.search.SimpleCollector
    • Constructor Summary

      Constructors 
      Constructor Description
      MinimumScoreCollector​(org.apache.lucene.search.Collector collector, float minimumScore)  
    • Method Summary

      Modifier and Type Method Description
      void collect​(int doc)  
      void doSetNextReader​(org.apache.lucene.index.LeafReaderContext context)  
      boolean needsScores()  
      void setScorer​(org.apache.lucene.search.Scorer scorer)  
      • Methods inherited from class org.apache.lucene.search.SimpleCollector

        getLeafCollector
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MinimumScoreCollector

        public MinimumScoreCollector​(org.apache.lucene.search.Collector collector,
                                     float minimumScore)
    • Method Detail

      • setScorer

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

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

        public void doSetNextReader​(org.apache.lucene.index.LeafReaderContext context)
                             throws java.io.IOException
        Overrides:
        doSetNextReader in class org.apache.lucene.search.SimpleCollector
        Throws:
        java.io.IOException
      • needsScores

        public boolean needsScores()