Class: Google::Apis::CloudsearchV1::QueryInterpretationConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::QueryInterpretationConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Default options to interpret user query.
Instance Attribute Summary collapse
-
#force_disable_supplemental_results ⇒ Boolean
(also: #force_disable_supplemental_results?)
Set this flag to disable supplemental results retrieval, setting a flag here will not retrieve supplemental results for queries associated with a given search application.
-
#force_verbatim_mode ⇒ Boolean
(also: #force_verbatim_mode?)
Enable this flag to turn off all internal optimizations like natural language ( NL) interpretation of queries, supplemental results retrieval, and usage of synonyms including custom ones.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryInterpretationConfig
constructor
A new instance of QueryInterpretationConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryInterpretationConfig
Returns a new instance of QueryInterpretationConfig.
6100 6101 6102 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#force_disable_supplemental_results ⇒ Boolean Also known as: force_disable_supplemental_results?
Set this flag to disable supplemental results retrieval, setting a flag here
will not retrieve supplemental results for queries associated with a given
search application. If this flag is set to True, it will take precedence over
the option set at Query level. For the default value of False, query level
flag will set the correct interpretation for supplemental results.
Corresponds to the JSON property forceDisableSupplementalResults
6087 6088 6089 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6087 def force_disable_supplemental_results @force_disable_supplemental_results end |
#force_verbatim_mode ⇒ Boolean Also known as: force_verbatim_mode?
Enable this flag to turn off all internal optimizations like natural language (
NL) interpretation of queries, supplemental results retrieval, and usage of
synonyms including custom ones. If this flag is set to True, it will take
precedence over the option set at Query level. For the default value of False,
query level flag will set the correct interpretation for verbatim mode.
Corresponds to the JSON property forceVerbatimMode
6097 6098 6099 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6097 def force_verbatim_mode @force_verbatim_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6105 6106 6107 6108 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6105 def update!(**args) @force_disable_supplemental_results = args[:force_disable_supplemental_results] if args.key?(:force_disable_supplemental_results) @force_verbatim_mode = args[:force_verbatim_mode] if args.key?(:force_verbatim_mode) end |