org.apache.lucene.search
public class ReqOptSumScorer extends Scorer
Scorer
implements {@link Scorer#skipTo(int)}.
Constructor Summary | |
---|---|
ReqOptSumScorer(Scorer reqScorer, Scorer optScorer) Construct a ReqOptScorer . |
Method Summary | |
---|---|
int | doc() |
Explanation | explain(int doc) Explain the score of a document. |
boolean | next() |
float | score() Returns the score of the current document matching the query.
|
boolean | skipTo(int target) |
ReqOptScorer
.Parameters: reqScorer The required scorer. This must match. optScorer The optional scorer. This is used for scoring only.
UNKNOWN: Also show the total score. See BooleanScorer.explain() on how to do this.
Returns: The score of the required scorer, eventually increased by the score of the optional scorer when it also matches the current document.