Class: Google::Apis::CloudsearchV1::ScoringConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ScoringConfig
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Scoring configurations for a source while processing a Search or Suggest request.
Instance Attribute Summary collapse
-
#disable_freshness ⇒ Boolean
(also: #disable_freshness?)
Whether to use freshness as a ranking signal.
-
#disable_personalization ⇒ Boolean
(also: #disable_personalization?)
Whether to personalize the results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScoringConfig
constructor
A new instance of ScoringConfig.
-
#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) ⇒ ScoringConfig
Returns a new instance of ScoringConfig.
3832 3833 3834 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3832 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_freshness ⇒ Boolean Also known as: disable_freshness?
Whether to use freshness as a ranking signal. By default, freshness is used
as a ranking signal. Note that this setting is not available in the Admin
UI.
Corresponds to the JSON property disableFreshness
3822 3823 3824 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3822 def disable_freshness @disable_freshness end |
#disable_personalization ⇒ Boolean Also known as: disable_personalization?
Whether to personalize the results. By default, personal signals will
be used to boost results.
Corresponds to the JSON property disablePersonalization
3829 3830 3831 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3829 def disable_personalization @disable_personalization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3837 3838 3839 3840 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3837 def update!(**args) @disable_freshness = args[:disable_freshness] if args.key?(:disable_freshness) @disable_personalization = args[:disable_personalization] if args.key?(:disable_personalization) end |