Class CompletionsTermsReader
- java.lang.Object
-
- org.apache.lucene.search.suggest.document.CompletionsTermsReader
-
- All Implemented Interfaces:
Accountable
public final class CompletionsTermsReader extends Object implements Accountable
Holder for suggester and field-level info for a suggest field- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description long
maxWeight
Maximum entry weight for the suggesterlong
minWeight
Minimum entry weight for the suggesterbyte
type
type of suggester (context-enabled or not)-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Accountable>
getChildResources()
long
ramBytesUsed()
NRTSuggester
suggester()
Returns the suggester for a field, if not loaded already, loads the appropriate suggester from CompletionDictionary
-
-
-
Method Detail
-
suggester
public NRTSuggester suggester() throws IOException
Returns the suggester for a field, if not loaded already, loads the appropriate suggester from CompletionDictionary- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsed
in interfaceAccountable
-
getChildResources
public Collection<Accountable> getChildResources()
- Specified by:
getChildResources
in interfaceAccountable
-
-