Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RankSignals.
A set of ranking signals.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchResponse.SearchResult.RankSignals
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchResponse \ SearchResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ keyword_similarity_score |
float
Optional. Keyword matching adjustment. |
↳ relevance_score |
float
Optional. Semantic relevance adjustment. |
↳ semantic_similarity_score |
float
Optional. Semantic similarity adjustment. |
↳ pctr_rank |
float
Optional. Predicted conversion rate adjustment as a rank. |
↳ topicality_rank |
float
Optional. Topicality adjustment as a rank. |
↳ document_age |
float
Optional. Age of the document in hours. |
↳ boosting_factor |
float
Optional. Combined custom boosts for a doc. |
↳ default_rank |
float
Optional. The default rank of the result. |
↳ custom_signals |
array<RankSignals\CustomSignal>
Optional. A list of custom clearbox signals. |
getKeywordSimilarityScore
Optional. Keyword matching adjustment.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasKeywordSimilarityScore
clearKeywordSimilarityScore
setKeywordSimilarityScore
Optional. Keyword matching adjustment.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRelevanceScore
Optional. Semantic relevance adjustment.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasRelevanceScore
clearRelevanceScore
setRelevanceScore
Optional. Semantic relevance adjustment.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSemanticSimilarityScore
Optional. Semantic similarity adjustment.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasSemanticSimilarityScore
clearSemanticSimilarityScore
setSemanticSimilarityScore
Optional. Semantic similarity adjustment.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPctrRank
Optional. Predicted conversion rate adjustment as a rank.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasPctrRank
clearPctrRank
setPctrRank
Optional. Predicted conversion rate adjustment as a rank.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTopicalityRank
Optional. Topicality adjustment as a rank.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasTopicalityRank
clearTopicalityRank
setTopicalityRank
Optional. Topicality adjustment as a rank.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDocumentAge
Optional. Age of the document in hours.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasDocumentAge
clearDocumentAge
setDocumentAge
Optional. Age of the document in hours.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBoostingFactor
Optional. Combined custom boosts for a doc.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasBoostingFactor
clearBoostingFactor
setBoostingFactor
Optional. Combined custom boosts for a doc.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDefaultRank
Optional. The default rank of the result.
| Returns | |
|---|---|
| Type | Description |
float |
|
setDefaultRank
Optional. The default rank of the result.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCustomSignals
Optional. A list of custom clearbox signals.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setCustomSignals
Optional. A list of custom clearbox signals.
| Parameter | |
|---|---|
| Name | Description |
var |
array<RankSignals\CustomSignal>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|