Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CustomRankingParams.
Configuration parameters for the Custom Ranking feature.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.CustomRankingParams
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ expressions_to_precompute |
string[]
Optional. A list of ranking expressions (see |
getExpressionsToPrecompute
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.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setExpressionsToPrecompute
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|