protected static class ScoreQuery.NotScorer
extends org.apache.lucene.search.Scorer
Modifier | Constructor and Description |
---|---|
protected |
ScoreQuery.NotScorer(org.apache.lucene.search.Scorer operandScorer,
org.apache.lucene.index.IndexReader reader,
org.apache.lucene.search.Weight weight) |
Modifier and Type | Method and Description |
---|---|
int |
advance(int target) |
int |
docID() |
int |
nextDoc() |
float |
score()
This method always returns a score of 1.0 for the current document, since only those documents that satisfy the NOT are
scored by this scorer.
|
protected ScoreQuery.NotScorer(org.apache.lucene.search.Scorer operandScorer, org.apache.lucene.index.IndexReader reader, org.apache.lucene.search.Weight weight)
operandScorer
- the scorer that is used to score the documents based upon the operand of the NOT; may not be nullreader
- the reader that has access to all the docs ...weight
- public int docID()
docID
in class org.apache.lucene.search.DocIdSetIterator
DocIdSetIterator.docID()
public int nextDoc() throws IOException
nextDoc
in class org.apache.lucene.search.DocIdSetIterator
IOException
DocIdSetIterator.nextDoc()
public int advance(int target) throws IOException
advance
in class org.apache.lucene.search.DocIdSetIterator
IOException
DocIdSetIterator.advance(int)
public float score()
This method always returns a score of 1.0 for the current document, since only those documents that satisfy the NOT are scored by this scorer.
score
in class org.apache.lucene.search.Scorer
Scorer.score()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.