Class: Google::Apis::CloudsearchV1::ScoringConfig

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

Scoring configurations for a source while processing a Search or Suggest request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScoringConfig

Returns a new instance of ScoringConfig.



3741
3742
3743
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3741

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

Instance Attribute Details

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

Returns:

  • (Boolean)


3731
3732
3733
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3731

def disable_freshness
  @disable_freshness
end

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

Returns:

  • (Boolean)


3738
3739
3740
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3738

def disable_personalization
  @disable_personalization
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3746
3747
3748
3749
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3746

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