Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestCustomRankingParams
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestCustomRankingParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Configuration parameters for the Custom Ranking feature.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestCustomRankingParams
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestCustomRankingParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchRequestCustomRankingParams
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchRequestCustomRankingParams.
16075 16076 16077 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16075 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expressions_to_precompute ⇒ Array<String>
Optional. A list of ranking expressions (see ranking_expression for the
syntax documentation) to evaluate. The evaluation results will be returned in
SearchResponse.SearchResult.rank_signals.precomputed_expression_values field.
Corresponds to the JSON property expressionsToPrecompute
16073 16074 16075 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16073 def expressions_to_precompute @expressions_to_precompute end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16080 16081 16082 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16080 def update!(**args) @expressions_to_precompute = args[:expressions_to_precompute] if args.key?(:expressions_to_precompute) end |