public class QueryHitsQuery.QueryHitsQueryScorer
extends org.apache.lucene.search.Scorer
Modifier | Constructor and Description |
---|---|
protected |
QueryHitsQueryScorer(org.apache.lucene.index.IndexReader reader,
org.apache.lucene.search.Similarity similarity)
Creates a new scorer.
|
Modifier and Type | Method and Description |
---|---|
int |
advance(int target) |
int |
docID() |
int |
nextDoc() |
float |
score() |
protected QueryHitsQueryScorer(org.apache.lucene.index.IndexReader reader, org.apache.lucene.search.Similarity similarity) throws IOException
reader
- the index reader.similarity
- the similarity implementation.IOException
- if an error occurs while reading from the index.public int nextDoc() throws IOException
nextDoc
in class org.apache.lucene.search.DocIdSetIterator
IOException
public int docID()
docID
in class org.apache.lucene.search.DocIdSetIterator
public float score() throws IOException
score
in class org.apache.lucene.search.Scorer
IOException
public int advance(int target) throws IOException
advance
in class org.apache.lucene.search.DocIdSetIterator
IOException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.