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.
16933 16934 16935 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16933 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
16931 16932 16933 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16931 def expressions_to_precompute @expressions_to_precompute end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16938 16939 16940 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16938 def update!(**args) @expressions_to_precompute = args[:expressions_to_precompute] if args.key?(:expressions_to_precompute) end |