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 floatgetMaxScore(int upTo)Return the maximum score that documents between the lasttargetthat this iterator wasshallow-advancedto included andupToincluded.protected floatscore(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:DisjunctionScorerCompute the score for the given linked list of scorers.- Specified by:
scorein classDisjunctionScorer- Throws:
java.io.IOException
-
getMaxScore
public float getMaxScore(int upTo) throws java.io.IOExceptionDescription copied from class:ScorerReturn the maximum score that documents between the lasttargetthat this iterator wasshallow-advancedto included andupToincluded.- Specified by:
getMaxScorein classScorer- Throws:
java.io.IOException
-
-