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
valueOf
clone
compareTo
describeConstable
equals
finalize
getDeclaringClass
hashCode
name
ordinal
toString
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
the parsed AutocompleteMode object, or null if unable to parse.
toString()
valueOf(String name)
values()
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for Java