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.
31330 31331 31332 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31330 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
31328 31329 31330 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31328 def expressions_to_precompute @expressions_to_precompute end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31335 31336 31337 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 31335 def update!(**args) @expressions_to_precompute = args[:expressions_to_precompute] if args.key?(:expressions_to_precompute) end |