Class: Google::Apis::CloudsearchV1::QueryInterpretationOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::QueryInterpretationOptions
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Options to interpret user query.
Instance Attribute Summary collapse
-
#disable_nl_interpretation ⇒ Boolean
(also: #disable_nl_interpretation?)
Flag to disable natural language (NL) interpretation of queries.
-
#enable_verbatim_mode ⇒ Boolean
(also: #enable_verbatim_mode?)
Enable this flag to turn off all internal optimizations like natural language (NL) interpretation of queries, supplemental result retrieval, and usage of synonyms including custom ones.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryInterpretationOptions
constructor
A new instance of QueryInterpretationOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryInterpretationOptions
Returns a new instance of QueryInterpretationOptions
3396 3397 3398 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3396 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_nl_interpretation ⇒ Boolean Also known as: disable_nl_interpretation?
Flag to disable natural language (NL) interpretation of queries. Default is
false, Set to true to disable natural language interpretation. NL
interpretation only applies to predefined datasources.
Corresponds to the JSON property disableNlInterpretation
3384 3385 3386 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3384 def disable_nl_interpretation @disable_nl_interpretation end |
#enable_verbatim_mode ⇒ Boolean Also known as: enable_verbatim_mode?
Enable this flag to turn off all internal optimizations like natural
language (NL) interpretation of queries, supplemental result retrieval,
and usage of synonyms including custom ones.
Nl interpretation will be disabled if either one of the two flags is true.
Corresponds to the JSON property enableVerbatimMode
3393 3394 3395 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3393 def enable_verbatim_mode @enable_verbatim_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3401 3402 3403 3404 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3401 def update!(**args) @disable_nl_interpretation = args[:disable_nl_interpretation] if args.key?(:disable_nl_interpretation) @enable_verbatim_mode = args[:enable_verbatim_mode] if args.key?(:enable_verbatim_mode) end |