org.apache.lucene.search
public class ReqExclScorer extends Scorer
Scorer
implements Scorer.skipTo(int)
,
and it uses the skipTo() on the given scorers.Constructor and Description |
---|
ReqExclScorer(Scorer reqScorer,
Scorer exclScorer)
Construct a
ReqExclScorer . |
Modifier and Type | Method and Description |
---|---|
int |
doc()
Returns the current document number matching the query.
|
Explanation |
explain(int doc)
Returns an explanation of the score for a document.
|
boolean |
next()
Advances to the document matching this Scorer with the lowest doc Id
greater than the current value of
Scorer.doc() (or to the matching
document with the lowest doc Id if next has never been called on
this Scorer). |
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, score
public boolean next() throws IOException
Scorer
Scorer.doc()
(or to the matching
document with the lowest doc Id if next has never been called on
this Scorer).
When this method is used the Scorer.explain(int)
method should not
be used.
next
in class Scorer
IOException
BooleanQuery.setAllowDocsOutOfOrder(boolean)
public int doc()
Scorer
Scorer.next()
is called the first time.public float score() throws IOException
next()
is called the first time.score
in class Scorer
IOException
public boolean skipTo(int target) throws IOException
explain(int)
method should not be used.skipTo
in class Scorer
target
- The target document number.IOException
BooleanQuery.setAllowDocsOutOfOrder(boolean)
public Explanation explain(int doc) throws IOException
Scorer
Scorer.next()
, Scorer.skipTo(int)
and
Scorer.score(HitCollector)
methods should not be used.explain
in class Scorer
doc
- The document number for the explanation.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.