Google Cloud Discovery Engine V1beta Client - Class SpellCorrectionSpec (0.11.2)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class SpellCorrectionSpec.

The specification for query spell correction.

Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ 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