public final class CompletionTerms extends FilterLeafReader.FilterTerms
Terms
used by SuggestField and ContextSuggestField
to access corresponding suggester and their attributesinEMPTY_ARRAY| 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, sizepublic byte getType()
SuggestField.TYPE or
ContextSuggestField.TYPEpublic long getMinWeight()
public long getMaxWeight()
public NRTSuggester suggester() throws IOException
NRTSuggester for the field
or null if no FST
was indexed for this fieldIOExceptionCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.