Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get ORACLE CONTAINS to match the literal word 'NOT'

Why does this

SELECT * FROM clinical_trials
WHERE CONTAINS(study_title, '%Not%') > 0

not match: 'Not Available'

like image 976
Sam Avatar asked Dec 05 '25 05:12

Sam


1 Answers

Check the stop list you use for the text index. The default - DEFAULT_STOPLIST - includes 'not' so this word is not indexed by default.

You can see the defined stop lists and their content using

SELECT * FROM ctxsys.ctx_stopwords;

and

SELECT * FROM ctxsys.ctx_stoplists;

like image 189
Husqvik Avatar answered Dec 07 '25 22:12

Husqvik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!