# Google Cloud Discovery Engine V1 Client - Class Mode (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 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](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchRequest.SpellCorrectionSpec.Mode#_Google_Cloud_DiscoveryEngine_V1_SearchRequest_SpellCorrectionSpec_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](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.SearchResponse#_Google_Cloud_DiscoveryEngine_V1_SearchResponse__getCorrectedQuery__).

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;`