Discussion:
Antonyms configuration
RajParakh
2012-06-27 14:54:50 UTC
Permalink
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.
Lee Carroll
2012-06-27 23:20:34 UTC
Permalink
have a field which uses a synonym file of your antonyms and a keep
word filter and use this field in your not query
Post by RajParakh
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.
RajParakh
2012-08-10 06:46:09 UTC
Permalink
Thanks a lot



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

Continue reading on narkive:
Loading...