public final class CompletionTerms extends FilterLeafReader.FilterTerms
Terms
used by SuggestField
and ContextSuggestField
to access corresponding suggester and their attributesModifier and Type | Field and Description |
---|---|
private CompletionsTermsReader |
reader |
in
EMPTY_ARRAY
Constructor and Description |
---|
CompletionTerms(Terms in,
CompletionsTermsReader reader)
Creates a completionTerms based on
CompletionsTermsReader |
Modifier and Type | Method and Description |
---|---|
long |
getMaxWeight()
Returns the maximum weight of all entries in the weighted FST
|
long |
getMinWeight()
Returns the minimum weight of all entries in the weighted FST
|
byte |
getType()
Returns the type of FST, either
SuggestField.TYPE or
ContextSuggestField.TYPE |
NRTSuggester |
suggester()
Returns a
NRTSuggester for the field
or null if no FST
was indexed for this field |
getDocCount, getStats, getSumDocFreq, getSumTotalTermFreq, hasFreqs, hasOffsets, hasPayloads, hasPositions, iterator, size
private final CompletionsTermsReader reader
CompletionTerms(Terms in, CompletionsTermsReader reader)
CompletionsTermsReader
public byte getType()
SuggestField.TYPE
or
ContextSuggestField.TYPE
public long getMinWeight()
public long getMaxWeight()
public NRTSuggester suggester() throws java.io.IOException
NRTSuggester
for the field
or null
if no FST
was indexed for this fieldjava.io.IOException