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
Methods
__construct
Constructor.
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 .
Generated from protobuf field .google.cloud.retail.v2.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
int
setMode
The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO .
Generated from protobuf field .google.cloud.retail.v2.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
var
int
$this