AutocompleteMode Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.search.documents.models.AutocompleteMode

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
the serialized value to parse.

Returns

the parsed AutocompleteMode object, or null if unable to parse.

toString()

public String toString()

Returns

Overrides
java.lang.Enum.toString()

valueOf(String name)

public static AutocompleteMode valueOf(String name)

Parameters

name
String

Returns

values()

public static AutocompleteMode[] values()

Returns

Applies to