public abstract class AbstractDocumentHitCollector
extends org.apache.lucene.search.SimpleCollector
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractDocumentHitCollector.SearcherFacade |
Modifier and Type | Field and Description |
---|---|
protected AbstractDocumentHitCollector.SearcherFacade |
searcher |
Constructor and Description |
---|
AbstractDocumentHitCollector() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDocsOutOfOrder()
Deprecated.
since 7.1 this method is not used and will be removed
|
protected abstract void |
collect(org.apache.lucene.document.Document document) |
void |
collect(int docId) |
protected org.apache.lucene.document.Document |
doc(int docId) |
void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext context) |
boolean |
needsScores()
since 7.1 this method must be overridden in your collector
|
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
protected final AbstractDocumentHitCollector.SearcherFacade searcher
public void doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
doSetNextReader
in class org.apache.lucene.search.SimpleCollector
public void collect(int docId)
collect
in interface org.apache.lucene.search.LeafCollector
collect
in class org.apache.lucene.search.SimpleCollector
protected org.apache.lucene.document.Document doc(int docId) throws IOException
IOException
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in interface org.apache.lucene.search.LeafCollector
setScorer
in class org.apache.lucene.search.SimpleCollector
IOException
protected abstract void collect(@NotNull org.apache.lucene.document.Document document)
@Deprecated public boolean acceptsDocsOutOfOrder()
public boolean needsScores()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.