| java.lang.Object org.apache.lucene.search.Scorer org.apache.lucene.search.ReqExclScorer
ReqExclScorer | public class ReqExclScorer extends Scorer (Code) | | A Scorer for queries with a required subscorer and an excluding (prohibited) subscorer.
This Scorer implements
Scorer.skipTo(int) ,
and it uses the skipTo() on the given scorers.
|
Method Summary | |
public int | doc() | public Explanation | explain(int doc) | public boolean | next() | public float | score() Returns the score of the current document matching the query. | public boolean | skipTo(int target) Skips to the first match beyond the current whose document number is
greater than or equal to a given target.
When this method is used the
ReqExclScorer.explain(int) method should not be used.
Parameters: target - The target document number. |
ReqExclScorer | public ReqExclScorer(Scorer reqScorer, Scorer exclScorer)(Code) | | Construct a ReqExclScorer .
Parameters: reqScorer - The scorer that must match, except where Parameters: exclScorer - indicates exclusion. |
score | public float score() throws IOException(Code) | | Returns the score of the current document matching the query.
Initially invalid, until
ReqExclScorer.next() is called the first time.
The score of the required scorer. |
skipTo | public boolean skipTo(int target) throws IOException(Code) | | Skips to the first match beyond the current whose document number is
greater than or equal to a given target.
When this method is used the
ReqExclScorer.explain(int) method should not be used.
Parameters: target - The target document number. true iff there is such a match. |
|
|