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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for Java