Oracle Text Query Using Wildcard "%" After Parenthesis or Curly Braces Returns No Results (Doc ID 1297041.1)

Last updated on MAY 13, 2013

Applies to:

Oracle Text - Version: 10.2.0.1 to 11.2.0.1 - Release: 10.2 to 11.2
Information in this document applies to any platform.

Symptoms

Using parenthesis or curly brackets with wildcard character in Text query returns wrong,  unexpected results.

Example:

SQL> select * from TEST;

COL1
-----------------------------------------
MAWSOPT(AUDIO)

--
-- return results
--
SQL> select * from TEST where contains(col1,'MAWSOPT(AUDIO)') > 0;

COL1
------------------------------------------
MAWSOPT(AUDIO)

--
-- no results
--
SQL> select * from TEST where contains(col1,'MAWSOPT(AUDIO)%') > 0;

no rows selected

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms