Package org.apache.lucene.search
Class DisjunctionSumScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- org.apache.lucene.search.DisjunctionScorer
-
- org.apache.lucene.search.DisjunctionSumScorer
-
final class DisjunctionSumScorer extends DisjunctionScorer
A Scorer for OR like queries, counterpart ofConjunctionScorer
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Constructor Summary
Constructors Constructor Description DisjunctionSumScorer(Weight weight, java.util.List<Scorer> subScorers, ScoreMode scoreMode)
Construct aDisjunctionScorer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getMaxScore(int upTo)
Return the maximum score that documents between the lasttarget
that this iterator wasshallow-advanced
to included andupTo
included.protected float
score(DisiWrapper topList)
Compute the score for the given linked list of scorers.-
Methods inherited from class org.apache.lucene.search.DisjunctionScorer
docID, getBlockMaxApprox, getChildren, getSubMatches, iterator, score, twoPhaseIterator
-
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getWeight
-
Methods inherited from class org.apache.lucene.search.Scorable
setMinCompetitiveScore
-
-
-
-
Method Detail
-
score
protected float score(DisiWrapper topList) throws java.io.IOException
Description copied from class:DisjunctionScorer
Compute the score for the given linked list of scorers.- Specified by:
score
in classDisjunctionScorer
- Throws:
java.io.IOException
-
getMaxScore
public float getMaxScore(int upTo) throws java.io.IOException
Description copied from class:Scorer
Return the maximum score that documents between the lasttarget
that this iterator wasshallow-advanced
to included andupTo
included.- Specified by:
getMaxScore
in classScorer
- Throws:
java.io.IOException
-
-