Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RelevanceThreshold.
The relevance threshold of the search results. The higher relevance
threshold is, the higher relevant results are shown and the less number of
results are returned.
Protobuf type google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequest
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
RELEVANCE_THRESHOLD_UNSPECIFIED
Value: 0
Default value. In this case, server behavior defaults to Google defined
threshold.
Generated from protobuf enum RELEVANCE_THRESHOLD_UNSPECIFIED = 0;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class RelevanceThreshold (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.SearchRequest.RelevanceThreshold)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.SearchRequest.RelevanceThreshold)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.SearchRequest.RelevanceThreshold)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.SearchRequest.RelevanceThreshold)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.SearchRequest.RelevanceThreshold)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.SearchRequest.RelevanceThreshold)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.SearchRequest.RelevanceThreshold)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.SearchRequest.RelevanceThreshold)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.SearchRequest.RelevanceThreshold)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.SearchRequest.RelevanceThreshold)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.SearchRequest.RelevanceThreshold)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.SearchRequest.RelevanceThreshold)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.SearchRequest.RelevanceThreshold)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.SearchRequest.RelevanceThreshold)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.SearchRequest.RelevanceThreshold)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.SearchRequest.RelevanceThreshold)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.SearchRequest.RelevanceThreshold) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RelevanceThreshold.\n\nThe relevance threshold of the search results. The higher relevance\nthreshold is, the higher relevant results are shown and the less number of\nresults are returned.\n\nProtobuf type `google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1 \\\\ SearchRequest\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### RELEVANCE_THRESHOLD_UNSPECIFIED\n\n Value: 0\n\nDefault value. In this case, server behavior defaults to Google defined\nthreshold.\n\nGenerated from protobuf enum `RELEVANCE_THRESHOLD_UNSPECIFIED = 0;`\n\n### LOWEST\n\n Value: 1\n\nLowest relevance threshold.\n\nGenerated from protobuf enum `LOWEST = 1;`\n\n### LOW\n\n Value: 2\n\nLow relevance threshold.\n\nGenerated from protobuf enum `LOW = 2;`\n\n### MEDIUM\n\n Value: 3\n\nMedium relevance threshold.\n\nGenerated from protobuf enum `MEDIUM = 3;`\n\n### HIGH\n\n Value: 4\n\nHigh relevance threshold.\n\nGenerated from protobuf enum `HIGH = 4;`"]]