Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Boost specification to boost certain documents.
Instance Attribute Summary collapse
-
#condition_boost_specs ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec>
Condition boost specifications.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec.
10875 10876 10877 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10875 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition_boost_specs ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec>
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
10873 10874 10875 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10873 def condition_boost_specs @condition_boost_specs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10880 10881 10882 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10880 def update!(**args) @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs) end |