How to query token AB&C using oracle text index ? (Doc ID 2276815.1)

Last updated on JUNE 15, 2017

Applies to:

Oracle Text - Version 11.2.0.4 and later
Information in this document applies to any platform.

Goal

How to use text index and query for a string similar to AB&C?

set define ~

select text from mytable where contains(text, 'AB\&C') > 0;
or
select text from mytable where contains(text, '{AB&C}') > 0;

This table is partitioned into 693 partitions
693 tables DR#IX_TS00001$I thru DR#IX_TS00693$I
where token text = 'AB&C'
 
 

Solution

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