Enum SearchRequest.SpellCorrectionSpec.Mode (0.44.0)

public enum SearchRequest.SpellCorrectionSpec.Mode extends Enum<SearchRequest.SpellCorrectionSpec.Mode> implements ProtocolMessageEnum

Enum describing under which mode spell correction should occur.

Protobuf enum google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode

Implements

ProtocolMessageEnum

Static Fields

Name Description
AUTO

Automatic spell correction built by the Search API. Search will be based on the corrected query if found.

AUTO = 2;

AUTO_VALUE

Automatic spell correction built by the Search API. Search will be based on the corrected query if found.

AUTO = 2;

MODE_UNSPECIFIED

Unspecified spell correction mode. In this case, server behavior defaults to Mode.AUTO.

MODE_UNSPECIFIED = 0;

MODE_UNSPECIFIED_VALUE

Unspecified spell correction mode. In this case, server behavior defaults to Mode.AUTO.

MODE_UNSPECIFIED = 0;

SUGGESTION_ONLY

Search API tries to find a spelling suggestion. If a suggestion is found, it is put in the SearchResponse.corrected_query. The spelling suggestion won't be used as the search query.

SUGGESTION_ONLY = 1;

SUGGESTION_ONLY_VALUE

Search API tries to find a spelling suggestion. If a suggestion is found, it is put in the SearchResponse.corrected_query. The spelling suggestion won't be used as the search query.

SUGGESTION_ONLY = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()