public final class CompletionTerms extends FilterLeafReader.FilterTerms
Terms
used by SuggestField and ContextSuggestField
to access corresponding suggester and their attributes| Modifier and Type | Field and Description |
|---|---|
private CompletionsTermsReader |
reader |
inEMPTY_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, sizeprivate final CompletionsTermsReader reader
CompletionTerms(Terms in, CompletionsTermsReader reader)
CompletionsTermsReaderpublic byte getType()
SuggestField.TYPE or
ContextSuggestField.TYPEpublic 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