Sets the URI Pattern to Document data mapping for an Advanced Site Search DataStore.
HTTP request
POST https://discoveryengine.googleapis.com/v1alpha/{siteSearchEngine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:setUriPatternDocumentData
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
site |
Required. Full resource name of the |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "documentDataMap": { string: { object }, ... }, "emptyDocumentDataMap": boolean, "schema": { object } } |
Fields | |
---|---|
document |
Document data keyed by URI pattern. Each entry must be consistent with the documentDataMap = { "www.url1.com/*": { "Categories": ["category1", "category2"] }, "www.url2.com/*": { "Categories": ["category3"] } } |
empty |
If true, clears the document data map. If true, |
schema |
Optional. If not provided, the current |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.