Google Cloud Discovery Engine V1 Client - Class Mode (1.10.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class Mode.

Enum describing under which mode spell correction should occur.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequest \ SpellCorrectionSpec

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

MODE_UNSPECIFIED

Value: 0

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

Generated from protobuf enum MODE_UNSPECIFIED = 0;

SUGGESTION_ONLY

Value: 1

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.

Generated from protobuf enum SUGGESTION_ONLY = 1;

AUTO

Value: 2

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

Generated from protobuf enum AUTO = 2;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.