Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams
- 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) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams
Returns a new instance of GoogleCloudDiscoveryengineV1betaSearchRequestCustomRankingParams.
30378 30379 30380 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30378 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
30376 30377 30378 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30376 def expressions_to_precompute @expressions_to_precompute end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30383 30384 30385 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 30383 def update!(**args) @expressions_to_precompute = args[:expressions_to_precompute] if args.key?(:expressions_to_precompute) end |