Package org.elasticsearch.common.lucene
Class MinimumScoreCollector
java.lang.Object
org.apache.lucene.search.SimpleCollector
org.elasticsearch.common.lucene.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
ConstructorDescriptionMinimumScoreCollector(org.apache.lucene.search.Collector collector, float minimumScore)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collect(int doc)
void
doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
org.apache.lucene.search.ScoreMode
void
setScorer(org.apache.lucene.search.Scorable 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
Methods inherited from interface org.apache.lucene.search.LeafCollector
competitiveIterator
-
Constructor Details
-
MinimumScoreCollector
public MinimumScoreCollector(org.apache.lucene.search.Collector collector, float minimumScore)
-
-
Method Details
-
setScorer
- Specified by:
setScorer
in interfaceorg.apache.lucene.search.LeafCollector
- Overrides:
setScorer
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
collect
- Specified by:
collect
in interfaceorg.apache.lucene.search.LeafCollector
- Specified by:
collect
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
doSetNextReader
- Overrides:
doSetNextReader
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
-