My Oracle Support Banner

Unexpected Search Behavior with Multiple Numeric Tags in OCM (Doc ID 2946657.1)

Last updated on MAY 08, 2023

Applies to:

Oracle Content Management - Version 23.6.3 and later
Information in this document applies to any platform.

Symptoms

If multiple numeric tags are set for a document using the Set File Tags endpoint, the only way we can then search this document using the tags field is by searching all the tags.

How to reproduce:

1. Upload a new document in the Documents page
2. Use the REST API Set File Tags and set multiple tags at once, for example use the following body in the request: {"setTags":"778945612,33412345"}. (https://docs.oracle.com/en/cloud/paas/content-cloud/rest-api-documents/op-documents-api-1.2-files-fileid-tags-post.html)
3. Use the REST API Search Folders or Files and search one of the tags, for example use the following url: {{HOST}}/documents/api/1.2/folders//search/items?fields=metadata&querytext=xTags`778945612`. (https://docs.oracle.com/en/cloud/paas/content-cloud/rest-api-documents/op-documents-api-1.2-folders-search-items-get.html)
4. Notice that the document won't be returned in the search.
5. Use the REST API Search Folders or Files and search for all the tags, for example use the following url: {{HOST}}/documents/api/1.2/folders//search/items?fields=metadata&querytext=xTags`778945612,33412345`.
6. Notice that the document will now be returned in the search.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.