abstract class TermsCollector<DV> extends DocValuesTermsCollector<DV>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TermsCollector.MV |
(package private) static class |
TermsCollector.SV |
DocValuesTermsCollector.Function<R>
Modifier and Type | Field and Description |
---|---|
(package private) BytesRefHash |
collectorTerms |
docValues
Constructor and Description |
---|
TermsCollector(DocValuesTermsCollector.Function<DV> docValuesCall) |
Modifier and Type | Method and Description |
---|---|
(package private) static TermsCollector<?> |
create(java.lang.String field,
boolean multipleValuesPerDocument)
Chooses the right
TermsCollector implementation. |
BytesRefHash |
getCollectorTerms() |
boolean |
needsScores()
Indicates if document scores are needed by this collector.
|
binaryDocValues, coder, doSetNextReader, numericAsBinaryDocValues, sortedNumericAsSortedSetDocValues, sortedSetDocValues
collect, getLeafCollector, setScorer
final BytesRefHash collectorTerms
TermsCollector(DocValuesTermsCollector.Function<DV> docValuesCall)
public BytesRefHash getCollectorTerms()
static TermsCollector<?> create(java.lang.String field, boolean multipleValuesPerDocument)
TermsCollector
implementation.field
- The field to collect terms formultipleValuesPerDocument
- Whether the field to collect terms for has multiple values per document.TermsCollector
instancepublic boolean needsScores()
Collector
true
if scores are needed.