Class: Google::Apis::CloudsearchV1::QueryInterpretationOptions

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryInterpretationOptions

Returns a new instance of QueryInterpretationOptions



3012
3013
3014
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3012

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disable_nl_interpretationBoolean 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

Returns:

  • (Boolean)


3009
3010
3011
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3009

def disable_nl_interpretation
  @disable_nl_interpretation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3017
3018
3019
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3017

def update!(**args)
  @disable_nl_interpretation = args[:disable_nl_interpretation] if args.key?(:disable_nl_interpretation)
end