public abstract class AbstractHitCollector
extends org.apache.lucene.search.Collector
| Modifier and Type | Field and Description |
|---|---|
protected int |
base |
protected org.apache.lucene.search.Scorer |
scorer |
| Constructor and Description |
|---|
AbstractHitCollector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsDocsOutOfOrder() |
void |
collect(int doc) |
protected abstract void |
collect(int doc,
float score)
Called once for every document matching a query, with the re-based document
number and its computed score.
|
void |
setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase) |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
public void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
setNextReader in class org.apache.lucene.search.CollectorIOExceptionpublic void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
setScorer in class org.apache.lucene.search.CollectorIOExceptionpublic void collect(int doc)
throws IOException
collect in class org.apache.lucene.search.CollectorIOExceptionprotected abstract void collect(int doc,
float score)
doc - the re-based document number.score - the document's score.public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder in class org.apache.lucene.search.CollectorCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.