Google Cloud Discovery Engine V1 Client - Class SpellCorrectionSpec (0.6.0)

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 \ SearchRequest

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
int

setMode

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this