serving_configs
Creates, updates, deletes, gets or lists a serving_configs
resource.
Overview
Name | serving_configs |
Type | Resource |
Id | google.retail.serving_configs |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_catalogs_serving_configs_get
- projects_locations_catalogs_serving_configs_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/* |
boostControlIds | array | Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
displayName | string | Required. The human readable serving config display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. |
diversityLevel | string | How much diversity to use in recommendation model results e.g. medium-diversity or high-diversity . Currently supported values: * no-diversity * low-diversity * medium-diversity * high-diversity * auto-diversity If not specified, we choose default based on recommendation model type. Default value: no-diversity . Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION. |
diversityType | string | What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY. |
doNotAssociateControlIds | array | Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
dynamicFacetSpec | object | The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. (id: GoogleCloudRetailV2SearchRequestDynamicFacetSpec) |
enableCategoryFilterLevel | string | Whether to add additional category filters on the similar-items model. If not specified, we enable it by default. Allowed values are: * no-category-match : No additional filtering of original results from the model and the customer's filters. * relaxed-category-match : Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION. |
facetControlIds | array | Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
filterControlIds | array | Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
ignoreControlIds | array | Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
ignoreRecsDenylist | boolean | When the flag is enabled, the products in the denylist will not be filtered out in the recommendation filtering results. |
modelId | string | The id of the model in the same Catalog to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when solution_types is SOLUTION_TYPE_RECOMMENDATION. |
onewaySynonymsControlIds | array | Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
personalizationSpec | object | The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec. (id: GoogleCloudRetailV2SearchRequestPersonalizationSpec) |
priceRerankingLevel | string | How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * no-price-reranking * low-price-reranking * medium-price-reranking * high-price-reranking If not specified, we choose default based on model type. Default value: no-price-reranking . Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION. |
redirectControlIds | array | Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
replacementControlIds | array | Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
solutionTypes | array | Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution. |
twowaySynonymsControlIds | array | Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Fully qualified name projects/*/locations/global/catalogs/*/servingConfig/* |
boostControlIds | array | Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
displayName | string | Required. The human readable serving config display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. |
diversityLevel | string | How much diversity to use in recommendation model results e.g. medium-diversity or high-diversity . Currently supported values: * no-diversity * low-diversity * medium-diversity * high-diversity * auto-diversity If not specified, we choose default based on recommendation model type. Default value: no-diversity . Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION. |
diversityType | string | What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY. |
doNotAssociateControlIds | array | Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
dynamicFacetSpec | object | The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. (id: GoogleCloudRetailV2SearchRequestDynamicFacetSpec) |
enableCategoryFilterLevel | string | Whether to add additional category filters on the similar-items model. If not specified, we enable it by default. Allowed values are: * no-category-match : No additional filtering of original results from the model and the customer's filters. * relaxed-category-match : Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION. |
facetControlIds | array | Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
filterControlIds | array | Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
ignoreControlIds | array | Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
ignoreRecsDenylist | boolean | When the flag is enabled, the products in the denylist will not be filtered out in the recommendation filtering results. |
modelId | string | The id of the model in the same Catalog to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when solution_types is SOLUTION_TYPE_RECOMMENDATION. |
onewaySynonymsControlIds | array | Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
personalizationSpec | object | The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec. (id: GoogleCloudRetailV2SearchRequestPersonalizationSpec) |
priceRerankingLevel | string | How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * no-price-reranking * low-price-reranking * medium-price-reranking * high-price-reranking If not specified, we choose default based on model type. Default value: no-price-reranking . Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION. |
redirectControlIds | array | Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
replacementControlIds | array | Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
solutionTypes | array | Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution. |
twowaySynonymsControlIds | array | Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_catalogs_serving_configs_get | select | projectsId , locationsId , catalogsId , servingConfigsId | Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. | |
projects_locations_catalogs_serving_configs_list | select | projectsId , locationsId , catalogsId | pageSize , pageToken | Lists all ServingConfigs linked to this catalog. |
projects_locations_catalogs_serving_configs_create | insert | projectsId , locationsId , catalogsId | servingConfigId | Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned. |
projects_locations_catalogs_serving_configs_patch | update | projectsId , locationsId , catalogsId , servingConfigsId | updateMask | Updates a ServingConfig. |
projects_locations_catalogs_serving_configs_delete | delete | projectsId , locationsId , catalogsId , servingConfigsId | Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist. | |
projects_locations_catalogs_serving_configs_search | exec | projectsId , locationsId , catalogsId , servingConfigsId | Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. | |
projects_locations_catalogs_serving_configs_predict | exec | projectsId , locationsId , catalogsId , servingConfigsId | Makes a recommendation prediction. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
catalogsId | string | |
locationsId | string | |
projectsId | string | |
servingConfigsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
servingConfigId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- projects_locations_catalogs_serving_configs_get
- projects_locations_catalogs_serving_configs_list
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
SELECT
name,
boostControlIds,
displayName,
diversityLevel,
diversityType,
doNotAssociateControlIds,
dynamicFacetSpec,
enableCategoryFilterLevel,
facetControlIds,
filterControlIds,
ignoreControlIds,
ignoreRecsDenylist,
modelId,
onewaySynonymsControlIds,
personalizationSpec,
priceRerankingLevel,
redirectControlIds,
replacementControlIds,
solutionTypes,
twowaySynonymsControlIds
FROM google.retail.serving_configs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND catalogsId = '{{ catalogsId }}' -- required
AND servingConfigsId = '{{ servingConfigsId }}' -- required;
Lists all ServingConfigs linked to this catalog.
SELECT
name,
boostControlIds,
displayName,
diversityLevel,
diversityType,
doNotAssociateControlIds,
dynamicFacetSpec,
enableCategoryFilterLevel,
facetControlIds,
filterControlIds,
ignoreControlIds,
ignoreRecsDenylist,
modelId,
onewaySynonymsControlIds,
personalizationSpec,
priceRerankingLevel,
redirectControlIds,
replacementControlIds,
solutionTypes,
twowaySynonymsControlIds
FROM google.retail.serving_configs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND catalogsId = '{{ catalogsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
INSERT
examples
- projects_locations_catalogs_serving_configs_create
- Manifest
Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.
INSERT INTO google.retail.serving_configs (
data__name,
data__displayName,
data__modelId,
data__priceRerankingLevel,
data__facetControlIds,
data__dynamicFacetSpec,
data__boostControlIds,
data__filterControlIds,
data__redirectControlIds,
data__twowaySynonymsControlIds,
data__onewaySynonymsControlIds,
data__doNotAssociateControlIds,
data__replacementControlIds,
data__ignoreControlIds,
data__diversityLevel,
data__diversityType,
data__enableCategoryFilterLevel,
data__ignoreRecsDenylist,
data__personalizationSpec,
data__solutionTypes,
projectsId,
locationsId,
catalogsId,
servingConfigId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ modelId }}',
'{{ priceRerankingLevel }}',
'{{ facetControlIds }}',
'{{ dynamicFacetSpec }}',
'{{ boostControlIds }}',
'{{ filterControlIds }}',
'{{ redirectControlIds }}',
'{{ twowaySynonymsControlIds }}',
'{{ onewaySynonymsControlIds }}',
'{{ doNotAssociateControlIds }}',
'{{ replacementControlIds }}',
'{{ ignoreControlIds }}',
'{{ diversityLevel }}',
'{{ diversityType }}',
'{{ enableCategoryFilterLevel }}',
{{ ignoreRecsDenylist }},
'{{ personalizationSpec }}',
'{{ solutionTypes }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ catalogsId }}',
'{{ servingConfigId }}'
RETURNING
name,
boostControlIds,
displayName,
diversityLevel,
diversityType,
doNotAssociateControlIds,
dynamicFacetSpec,
enableCategoryFilterLevel,
facetControlIds,
filterControlIds,
ignoreControlIds,
ignoreRecsDenylist,
modelId,
onewaySynonymsControlIds,
personalizationSpec,
priceRerankingLevel,
redirectControlIds,
replacementControlIds,
solutionTypes,
twowaySynonymsControlIds
;
# Description fields are for documentation purposes
- name: serving_configs
props:
- name: projectsId
value: string
description: Required parameter for the serving_configs resource.
- name: locationsId
value: string
description: Required parameter for the serving_configs resource.
- name: catalogsId
value: string
description: Required parameter for the serving_configs resource.
- name: name
value: string
description: >
Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`
- name: displayName
value: string
description: >
Required. The human readable serving config display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
- name: modelId
value: string
description: >
The id of the model in the same Catalog to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when solution_types is SOLUTION_TYPE_RECOMMENDATION.
- name: priceRerankingLevel
value: string
description: >
How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- name: facetControlIds
value: array
description: >
Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: dynamicFacetSpec
value: object
description: >
The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: boostControlIds
value: array
description: >
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 100. Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: filterControlIds
value: array
description: >
Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: redirectControlIds
value: array
description: >
Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: twowaySynonymsControlIds
value: array
description: >
Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: onewaySynonymsControlIds
value: array
description: >
Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: doNotAssociateControlIds
value: array
description: >
Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: replacementControlIds
value: array
description: >
Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: ignoreControlIds
value: array
description: >
Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.
- name: diversityLevel
value: string
description: >
How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- name: diversityType
value: string
description: >
What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.
valid_values: ['DIVERSITY_TYPE_UNSPECIFIED', 'RULE_BASED_DIVERSITY', 'DATA_DRIVEN_DIVERSITY']
- name: enableCategoryFilterLevel
value: string
description: >
Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.
- name: ignoreRecsDenylist
value: boolean
description: >
When the flag is enabled, the products in the denylist will not be filtered out in the recommendation filtering results.
- name: personalizationSpec
value: object
description: >
The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
- name: solutionTypes
value: array
description: >
Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.
- name: servingConfigId
value: string
UPDATE
examples
- projects_locations_catalogs_serving_configs_patch
Updates a ServingConfig.
UPDATE google.retail.serving_configs
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__modelId = '{{ modelId }}',
data__priceRerankingLevel = '{{ priceRerankingLevel }}',
data__facetControlIds = '{{ facetControlIds }}',
data__dynamicFacetSpec = '{{ dynamicFacetSpec }}',
data__boostControlIds = '{{ boostControlIds }}',
data__filterControlIds = '{{ filterControlIds }}',
data__redirectControlIds = '{{ redirectControlIds }}',
data__twowaySynonymsControlIds = '{{ twowaySynonymsControlIds }}',
data__onewaySynonymsControlIds = '{{ onewaySynonymsControlIds }}',
data__doNotAssociateControlIds = '{{ doNotAssociateControlIds }}',
data__replacementControlIds = '{{ replacementControlIds }}',
data__ignoreControlIds = '{{ ignoreControlIds }}',
data__diversityLevel = '{{ diversityLevel }}',
data__diversityType = '{{ diversityType }}',
data__enableCategoryFilterLevel = '{{ enableCategoryFilterLevel }}',
data__ignoreRecsDenylist = {{ ignoreRecsDenylist }},
data__personalizationSpec = '{{ personalizationSpec }}',
data__solutionTypes = '{{ solutionTypes }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND catalogsId = '{{ catalogsId }}' --required
AND servingConfigsId = '{{ servingConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
boostControlIds,
displayName,
diversityLevel,
diversityType,
doNotAssociateControlIds,
dynamicFacetSpec,
enableCategoryFilterLevel,
facetControlIds,
filterControlIds,
ignoreControlIds,
ignoreRecsDenylist,
modelId,
onewaySynonymsControlIds,
personalizationSpec,
priceRerankingLevel,
redirectControlIds,
replacementControlIds,
solutionTypes,
twowaySynonymsControlIds;
DELETE
examples
- projects_locations_catalogs_serving_configs_delete
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
DELETE FROM google.retail.serving_configs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND catalogsId = '{{ catalogsId }}' --required
AND servingConfigsId = '{{ servingConfigsId }}' --required;
Lifecycle Methods
- projects_locations_catalogs_serving_configs_search
- projects_locations_catalogs_serving_configs_predict
Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
EXEC google.retail.serving_configs.projects_locations_catalogs_serving_configs_search
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@catalogsId='{{ catalogsId }}' --required,
@servingConfigsId='{{ servingConfigsId }}' --required
@@json=
'{
"branch": "{{ branch }}",
"query": "{{ query }}",
"visitorId": "{{ visitorId }}",
"userInfo": "{{ userInfo }}",
"pageSize": {{ pageSize }},
"pageToken": "{{ pageToken }}",
"offset": {{ offset }},
"filter": "{{ filter }}",
"canonicalFilter": "{{ canonicalFilter }}",
"orderBy": "{{ orderBy }}",
"facetSpecs": "{{ facetSpecs }}",
"dynamicFacetSpec": "{{ dynamicFacetSpec }}",
"boostSpec": "{{ boostSpec }}",
"queryExpansionSpec": "{{ queryExpansionSpec }}",
"variantRollupKeys": "{{ variantRollupKeys }}",
"pageCategories": "{{ pageCategories }}",
"searchMode": "{{ searchMode }}",
"personalizationSpec": "{{ personalizationSpec }}",
"labels": "{{ labels }}",
"spellCorrectionSpec": "{{ spellCorrectionSpec }}",
"entity": "{{ entity }}",
"conversationalSearchSpec": "{{ conversationalSearchSpec }}",
"tileNavigationSpec": "{{ tileNavigationSpec }}",
"languageCode": "{{ languageCode }}",
"regionCode": "{{ regionCode }}",
"placeId": "{{ placeId }}",
"userAttributes": "{{ userAttributes }}"
}';
Makes a recommendation prediction.
EXEC google.retail.serving_configs.projects_locations_catalogs_serving_configs_predict
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@catalogsId='{{ catalogsId }}' --required,
@servingConfigsId='{{ servingConfigsId }}' --required
@@json=
'{
"userEvent": "{{ userEvent }}",
"pageSize": {{ pageSize }},
"pageToken": "{{ pageToken }}",
"filter": "{{ filter }}",
"validateOnly": {{ validateOnly }},
"params": "{{ params }}",
"labels": "{{ labels }}"
}';