Module org.apache.lucene.suggest
Class CompletionTerms
java.lang.Object
org.apache.lucene.index.Terms
org.apache.lucene.index.FilterLeafReader.FilterTerms
org.apache.lucene.search.suggest.document.CompletionTerms
Wrapped
Terms used by SuggestField and ContextSuggestField to access corresponding suggester and their attributes-
Field Summary
FieldsFields inherited from class org.apache.lucene.index.FilterLeafReader.FilterTerms
inFields inherited from class org.apache.lucene.index.Terms
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionCompletionTerms(Terms in, CompletionsTermsReader reader) Creates a completionTerms based onCompletionsTermsReader -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the maximum weight of all entries in the weighted FSTlongReturns the minimum weight of all entries in the weighted FSTbytegetType()Returns the type of FST, eitherSuggestField.TYPEorContextSuggestField.TYPEReturns aNRTSuggesterfor the field ornullif no FST was indexed for this fieldMethods inherited from class org.apache.lucene.index.FilterLeafReader.FilterTerms
getDocCount, getStats, getSumDocFreq, getSumTotalTermFreq, hasFreqs, hasOffsets, hasPayloads, hasPositions, iterator, size
-
Field Details
-
reader
-
-
Constructor Details
-
CompletionTerms
CompletionTerms(Terms in, CompletionsTermsReader reader) Creates a completionTerms based onCompletionsTermsReader
-
-
Method Details
-
getType
public byte getType()Returns the type of FST, eitherSuggestField.TYPEorContextSuggestField.TYPE -
getMinWeight
public long getMinWeight()Returns the minimum weight of all entries in the weighted FST -
getMaxWeight
public long getMaxWeight()Returns the maximum weight of all entries in the weighted FST -
suggester
Returns aNRTSuggesterfor the field ornullif no FST was indexed for this field- Throws:
IOException
-