Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::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::DiscoveryEngine::V1::SearchRequest::SpellCorrectionSpec::Mode
Returns
- (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SpellCorrectionSpec::Mode) — The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO.
#mode=
def mode=(value) -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SpellCorrectionSpec::Mode
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SpellCorrectionSpec::Mode) — The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO.
Returns
- (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SpellCorrectionSpec::Mode) — The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO.