My Oracle Support Banner

How To Search In WebCenter Content (WCC/UCM) For Values Containing Slash ("/") Or Backslash ("\") (Doc ID 3003296.1)

Last updated on FEBRUARY 09, 2024

Applies to:

Oracle WebCenter Content - Version 11.1.1.9.0 and later
Information in this document applies to any platform.

Goal

Using QuickSeach, a query is performed with the following string: ABC/1234

A document exists with this specific value as a metadata field, which is searchable. If the quick search is changed just to 1234, the document is found.

By putting on debug, we can see the following when the search is performed:

IdcServer-26719 query(live): ((((((("must":{"query_string":{"default_field":"dDocName","query":"*ABC\\/1234*"}}) ES_OR ("must":{"match_phrase":{"dDocTitle":{"query":"ABC\/1234","zero_terms_query":"all"}}}) ... )))))) [1,40] sort(dInDate Desc)

We will present below a way to allow either slash ("/") or backslash ("\") within the search, as it seems UCM is using them as escape characters.
 

Solution

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
Goal
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.