Class QueryHitsQuery.QueryHitsQueryScorer
- java.lang.Object
-
- org.apache.lucene.search.DocIdSetIterator
-
- org.apache.lucene.search.Scorer
-
- org.apache.jackrabbit.core.query.lucene.QueryHitsQuery.QueryHitsQueryScorer
-
- Enclosing class:
- QueryHitsQuery
public class QueryHitsQuery.QueryHitsQueryScorer extends Scorer
the scorer implementation for this query.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QueryHitsQueryScorer(IndexReader reader, Similarity similarity)
Creates a new scorer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
advance(int target)
int
docID()
int
nextDoc()
float
score()
-
Methods inherited from class org.apache.lucene.search.Scorer
freq, getSimilarity, score, score, visitScorers, visitSubScorers
-
-
-
-
Constructor Detail
-
QueryHitsQueryScorer
protected QueryHitsQueryScorer(IndexReader reader, Similarity similarity) throws IOException
Creates a new scorer.- Parameters:
reader
- the index reader.similarity
- the similarity implementation.- Throws:
IOException
- if an error occurs while reading from the index.
-
-
Method Detail
-
nextDoc
public int nextDoc() throws IOException
- Specified by:
nextDoc
in classDocIdSetIterator
- Throws:
IOException
-
docID
public int docID()
- Specified by:
docID
in classDocIdSetIterator
-
score
public float score() throws IOException
- Specified by:
score
in classScorer
- Throws:
IOException
-
advance
public int advance(int target) throws IOException
- Specified by:
advance
in classDocIdSetIterator
- Throws:
IOException
-
-