Hi,

I need to specify an antonym list - similar to synonym list.
Whats the best way to go about it?


Currently, I am firing - RegularLuceneQuery AND (NOT keyword)
Example :Antonym list has four words - A, B1,B2,B3
A X B1
A X B2
A X B3

User Query contains 'A'
Expected result set: Documents NOT containing any of the words B1,B2,B3.
So the lucene query I am firing is - RegularLuceneQuery AND (NOT (B1 OR B2
OR B3)

Is there a cleaner way? Antonym list is growing ..

Thanks,
Raj

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Antonyms-configuration-tp3991595.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to