Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SpellCorrectionSpec.
The specification for query spell correction.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ mode | intThe mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. | 
getMode
The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO.
| Returns | |
|---|---|
| Type | Description | 
| int | Enum of type Mode. | 
setMode
The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO.
| Parameter | |
|---|---|
| Name | Description | 
| var | intEnum of type Mode. | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |