Originally I posted this in SO but found this place which seems more
suitable to ask
I have an elasticsearch index where my default analyzer is the snowball
analyzer so I can get the stemming and now I need the ability to have
synonyms on some of the fields as well as the benefit of the snowball
analyzer to do stemming.
Is this possible and if so how?
As a test I tried to set a synonym filter on the snowball analiyzer, hoping
that it would enable synonyms on all fields so I can test it but that
didn't really work...
I created another analyzer for synonyms on my index with the WordNet
synonym file.
If I am not clear please let me know and I'll try and update. Here is my
current index settings.
You would need to create a custom analyzer by basically repeating the
configuration of the snowball analyzer, but adding in the synonym filter.
You can't modify a stock analyzer, unless this has changed (if so, someone
please correct me).
--
Ivan
On Wed, Nov 5, 2014 at 6:43 PM, Iqbal Ahmed iq.quit@gmail.com wrote:
Hi guys,
Originally I posted this in SO but found this place which seems more
suitable to ask
I have an elasticsearch index where my default analyzer is the snowball
analyzer so I can get the stemming and now I need the ability to have
synonyms on some of the fields as well as the benefit of the snowball
analyzer to do stemming.
Is this possible and if so how?
As a test I tried to set a synonym filter on the snowball analiyzer,
hoping that it would enable synonyms on all fields so I can test it but
that didn't really work...
I created another analyzer for synonyms on my index with the WordNet
synonym file.
If I am not clear please let me know and I'll try and update. Here is my
current index settings.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.