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