Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestBoostSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Boost specification to boost certain documents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchRequestBoostSpec

Returns a new instance of GoogleCloudDiscoveryengineV1SearchRequestBoostSpec.



7328
7329
7330
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7328

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

Instance Attribute Details

#condition_boost_specsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec>

Condition boost specifications. If a document matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. Corresponds to the JSON property conditionBoostSpecs



7326
7327
7328
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7326

def condition_boost_specs
  @condition_boost_specs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7333
7334
7335
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7333

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