Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec
- 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
-
#condition_boost_specs ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec>
Condition boost specifications.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec.
18040 18041 18042 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18040 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition_boost_specs ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec>
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
18038 18039 18040 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18038 def condition_boost_specs @condition_boost_specs end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18045 18046 18047 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 18045 def update!(**args) @condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs) end |