public abstract class FieldableDocumentHitCollector
extends org.apache.lucene.search.Collector
Collector
that retrieves only a subset of fields within the Document for each result.DocumentHitCollector
Modifier | Constructor and Description |
---|---|
protected |
FieldableDocumentHitCollector() |
protected |
FieldableDocumentHitCollector(org.apache.lucene.search.IndexSearcher searcher)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDocsOutOfOrder() |
abstract void |
collect(org.apache.lucene.document.Document d) |
void |
collect(int i) |
protected abstract org.apache.lucene.document.FieldSelector |
getFieldSelector()
This method should cache up the FieldSelector, such that overhead will be as small as possible when
this method is called from the
collect(int) method. |
void |
setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase) |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
@Deprecated protected FieldableDocumentHitCollector(org.apache.lucene.search.IndexSearcher searcher)
searcher
- protected FieldableDocumentHitCollector()
public void collect(int i)
collect
in class org.apache.lucene.search.Collector
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in class org.apache.lucene.search.Collector
IOException
public void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase) throws IOException
setNextReader
in class org.apache.lucene.search.Collector
IOException
public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
protected abstract org.apache.lucene.document.FieldSelector getFieldSelector()
collect(int)
method.FieldSelector
public abstract void collect(org.apache.lucene.document.Document d)
Copyright © 2002-2019 Atlassian. All Rights Reserved.