# Google Cloud Retail V2 Client - Class Mode (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class Mode.

Enum describing under which mode spell correction should occur.

Protobuf type `google.cloud.retail.v2.SearchRequest.SpellCorrectionSpec.Mode`

## Namespace

Google \\ Cloud \\ Retail \\ V2 \\ 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-retail/latest/V2.SearchRequest.SpellCorrectionSpec.Mode#_Google_Cloud_Retail_V2_SearchRequest_SpellCorrectionSpec_Mode__AUTO).

Generated from protobuf enum `MODE_UNSPECIFIED = 0;`

### SUGGESTION_ONLY

    Value: 1

Google Retail Search will try to find a spell suggestion if there
is any and put in the
[SearchResponse.corrected_query](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.SearchResponse#_Google_Cloud_Retail_V2_SearchResponse__getCorrectedQuery__).

The spell suggestion will not be used as the search query.

Generated from protobuf enum `SUGGESTION_ONLY = 1;`

### AUTO

    Value: 2

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

Generated from protobuf enum `AUTO = 2;`