Discovery Engine v1 API - Class SearchRequest.Types.RelevanceScoreSpec (1.12.0)

public sealed class SearchRequest.Types.RelevanceScoreSpec : IMessage<SearchRequest.Types.RelevanceScoreSpec>, IEquatable<SearchRequest.Types.RelevanceScoreSpec>, IDeepCloneable<SearchRequest.Types.RelevanceScoreSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class SearchRequest.Types.RelevanceScoreSpec.

The specification for returning the document relevance score.

Inheritance

object > SearchRequest.Types.RelevanceScoreSpec

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

RelevanceScoreSpec()

public RelevanceScoreSpec()

RelevanceScoreSpec(RelevanceScoreSpec)

public RelevanceScoreSpec(SearchRequest.Types.RelevanceScoreSpec other)
Parameter
Name Description
other SearchRequestTypesRelevanceScoreSpec

Properties

ReturnRelevanceScore

public bool ReturnRelevanceScore { get; set; }

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

Property Value
Type Description
bool