Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> OracleText: Search for exact string match
Hi,
I'm trying to write a query in Oracle Text that
returns an exact string match but the output also
returns records that are partially matched.
For example, I want the query below to just return ONE record - "Lethal Weapon 2" but it also returned a partially matched record - "Lethal Weapon 4".
select textid, text from text_table
where contains(text,'{Lethal Weapon 2}')>0;
TEXTID TEXT
-------- ---------------------
2 Lethal Weapon 2 3 Lethal Weapon 4
2 rows selected.
Any idea how I can rewrite my query?
Thanks in advance.
susan