Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class RelevanceThresholdSpec.
Specification for relevance filtering on a specific sub-search.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequest \ RelevanceFilterSpecMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ relevance_threshold |
int
Pre-defined relevance threshold for the sub-search. |
↳ semantic_relevance_threshold |
float
Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. |
getRelevanceThreshold
Pre-defined relevance threshold for the sub-search.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type RelevanceThreshold. |
hasRelevanceThreshold
setRelevanceThreshold
Pre-defined relevance threshold for the sub-search.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type RelevanceThreshold. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSemanticRelevanceThreshold
Custom relevance threshold for the sub-search.
The value must be in [0.0, 1.0].
| Returns | |
|---|---|
| Type | Description |
float |
|
hasSemanticRelevanceThreshold
setSemanticRelevanceThreshold
Custom relevance threshold for the sub-search.
The value must be in [0.0, 1.0].
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRelevanceThresholdSpec
| Returns | |
|---|---|
| Type | Description |
string |
|