Google Cloud Discovery Engine V1 Client - Class RelevanceScoreSpec (1.5.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RelevanceScoreSpec.

The specification for returning the document relevance score.

Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ return_relevance_score bool

Optional. Whether to return the relevance score for search results. The higher the score, the more relevant the document is to the query.

getReturnRelevanceScore

Optional. Whether to return the relevance score for search results.

The higher the score, the more relevant the document is to the query.

Returns
Type Description
bool

setReturnRelevanceScore

Optional. Whether to return the relevance score for search results.

The higher the score, the more relevant the document is to the query.

Parameter
Name Description
var bool
Returns
Type Description
$this