AutocompleteMode Enum
- java.
lang. Object - java.
lang. Enum - com.
azure. search. documents. models. AutocompleteMode
- com.
- java.
public enum AutocompleteMode
extends Enum<AutocompleteMode>
Specifies the mode for Autocomplete. The default is 'oneTerm'. Use 'twoTerms' to get shingles and 'oneTermWithContext' to use the current context in producing autocomplete terms.
Fields
ONE_TERM |
Only one term is suggested. |
ONE_TERM_WITH_CONTEXT |
Completes the last term in a query with two or more terms, where the last two terms are a phrase that exists in the index. |
TWO_TERMS |
Matching two-term phrases in the index will be suggested. |
Methods inherited from java.lang.Enum
Methods inherited from java.lang.Object
Methods
fromString(String value)
public static AutocompleteMode fromString(String value)
Parses a serialized value to a AutocompleteMode instance.
Parameters
- value
- String
Returns
toString()
valueOf(String name)
values()
Applies to
Azure SDK for Java