public class ReqOptSumScorer extends Scorer
Scorer implements Scorer.skipTo(int).| Constructor and Description |
|---|
ReqOptSumScorer(Scorer reqScorer,
Scorer optScorer)
Construct a
ReqOptScorer. |
| Modifier and Type | Method and Description |
|---|---|
int |
doc()
Returns the current document number matching the query.
|
Explanation |
explain(int doc)
Explain the score of a document.
|
boolean |
next()
Advances to the next document matching the query.
|
float |
score()
Returns the score of the current document matching the query.
|
boolean |
skipTo(int target)
Skips to the first match beyond the current whose document number is
greater than or equal to a given target.
|
getSimilarity, score, scorepublic boolean next()
throws IOException
Scorernext in class ScorerScorer.explain(int) method should not be used.IOExceptionpublic boolean skipTo(int target)
throws IOException
ScorerScorer.explain(int) method should not be used.skipTo in class Scorertarget - The target document number.Behaves as if written:
boolean skipTo(int target) {
do {
if (!next())
return false;
} while (target > doc());
return true;
}
Most implementations are considerably more efficient than that.IOExceptionpublic int doc()
ScorerScorer.next() is called the first time.public float score()
throws IOException
next() is called the first time.score in class ScorerIOExceptionpublic Explanation explain(int doc) throws IOException
explain in class Scorerdoc - The document number for the explanation.IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.