|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.DocIdSetIterator
org.apache.lucene.search.Scorer
org.apache.lucene.search.ReqExclScorer
public class ReqExclScorer
A Scorer for queries with a required subscorer and an excluding (prohibited) subscorer.
This Scorer implements DocIdSetIterator.skipTo(int),
and it uses the skipTo() on the given scorers.
| Constructor Summary | |
|---|---|
ReqExclScorer(Scorer reqScorer,
Scorer exclScorer)
Construct a ReqExclScorer. |
|
| Method Summary | |
|---|---|
int |
doc()
Returns the current document number. |
Explanation |
explain(int doc)
Returns an explanation of the score for a document. |
boolean |
next()
Moves to the next docId in the set. |
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. |
| Methods inherited from class org.apache.lucene.search.Scorer |
|---|
getSimilarity, score, score |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReqExclScorer(Scorer reqScorer,
Scorer exclScorer)
ReqExclScorer.
reqScorer - The scorer that must match, except whereexclScorer - indicates exclusion.| Method Detail |
|---|
public boolean next()
throws IOException
DocIdSetIterator
next in class DocIdSetIteratorIOExceptionpublic int doc()
DocIdSetIterator This is invalid until DocIdSetIterator.next() is called for the first time.
doc in class DocIdSetIterator
public float score()
throws IOException
next() is called the first time.
score in class ScorerIOException
public boolean skipTo(int target)
throws IOException
explain(int) method should not be used.
skipTo in class DocIdSetIteratortarget - The target document number.
IOException
public Explanation explain(int doc)
throws IOException
ScorerDocIdSetIterator.next(), DocIdSetIterator.skipTo(int) and
Scorer.score(HitCollector) methods should not be used.
explain in class Scorerdoc - The document number for the explanation.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||