Google Cloud Retail V2 Client - Class SpellCorrectionSpec (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Retail V2 Client class SpellCorrectionSpec.

The specification for query spell correction.

Generated from protobuf message google.cloud.retail.v2.SearchRequest.SpellCorrectionSpec

Namespace

Google \ Cloud \ Retail \ V2 \ SearchRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ mode int

The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.

getMode

The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.

Returns
Type Description
int

setMode

The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.

Parameter
Name Description
var int
Returns
Type Description
$this