Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec.
The specification for query spell correction.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#mode
def mode() -> ::Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec::Mode
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec::Mode) — The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.
#mode=
def mode=(value) -> ::Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec::Mode
Parameter
- value (::Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec::Mode) — The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec::Mode) — The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.