Why does this
SELECT * FROM clinical_trials
WHERE CONTAINS(study_title, '%Not%') > 0
not match: 'Not Available'
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With