Module org.apache.lucene.core
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.FilterScorable
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate float
minScore()
void
setMinCompetitiveScore
(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
Methods inherited from class org.apache.lucene.search.Scorable
smoothingScore
-
Field Details
-
idx
private final int idx -
minScores
private final float[] minScores
-
-
Constructor Details
-
MinCompetitiveScoreAwareScorable
MinCompetitiveScoreAwareScorable(Scorable in, int idx, float[] minScores)
-
-
Method Details
-
setMinCompetitiveScore
Description copied from class:Scorable
Optional 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 use
ScoreMode.TOP_SCORES
, and successive calls may only set increasing values ofminScore
.- Overrides:
setMinCompetitiveScore
in classScorable
- Throws:
IOException
-
minScore
private float minScore()
-