Class CompletionsTermsReader
java.lang.Object
org.apache.lucene.search.suggest.document.CompletionsTermsReader
- All Implemented Interfaces:
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
Modifier and TypeFieldDescriptionfinal long
Maximum entry weight for the suggesterfinal long
Minimum entry weight for the suggesterfinal byte
type of suggester (context-enabled or not)Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the suggester for a field, if not loaded already, loads the appropriate suggester from CompletionDictionary
-
Field Details
-
minWeight
public final long minWeightMinimum entry weight for the suggester -
maxWeight
public final long maxWeightMaximum entry weight for the suggester -
type
public final byte typetype of suggester (context-enabled or not)
-
-
Method Details
-
suggester
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
- Specified by:
getChildResources
in interfaceAccountable
-