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에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java