Package org.apache.lucene.search
Class MultiCollector.MinCompetitiveScoreAwareScorable
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.FilterScorable
-
- org.apache.lucene.search.MultiCollector.MinCompetitiveScoreAwareScorable
-
- Enclosing class:
- MultiCollector
static final class MultiCollector.MinCompetitiveScoreAwareScorable extends FilterScorable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Field Summary
Fields Modifier and Type Field Description private intidxprivate float[]minScores-
Fields inherited from class org.apache.lucene.search.FilterScorable
in
-
-
Constructor Summary
Constructors Constructor Description MinCompetitiveScoreAwareScorable(Scorable in, int idx, float[] minScores)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private floatminScore()voidsetMinCompetitiveScore(float minScore)Optional method: Tell the scorer that its iterator may safely ignore all documents whose score is less than the givenminScore.-
Methods inherited from class org.apache.lucene.search.FilterScorable
docID, getChildren, score
-
-
-
-
Constructor Detail
-
MinCompetitiveScoreAwareScorable
MinCompetitiveScoreAwareScorable(Scorable in, int idx, float[] minScores)
-
-
Method Detail
-
setMinCompetitiveScore
public void setMinCompetitiveScore(float minScore) throws java.io.IOExceptionDescription copied from class:ScorableOptional method: Tell the scorer that its iterator may safely ignore all documents whose score is less than the givenminScore. This is a no-op by default. This method may only be called from collectors that useScoreMode.TOP_SCORES, and successive calls may only set increasing values ofminScore.- Overrides:
setMinCompetitiveScorein classScorable- Throws:
java.io.IOException
-
minScore
private float minScore()
-
-