I have synonyms defined for certain codes that could be updated through
my system. These updates are infrequent: in the order of months and in some
cases, it could be years. I am planning to use the synonym token filter.
Can I do this update without modifying the synonyms list? I am fine with
either programmatic solutions, or solutions which would require
elasticsearch to source the list of synonyms from an external source. Is it
possible with ES?
I am sorry for the vague question; I should have phrased it better.
Yes, I am aware of the fact that you could upload the synonyms from a file.
But this does not work out in my scenario because, I would like the synonym
to be updated by my application program. As I understand, it is not yet
possible to update the synonyms.txt through the application program. Hence
I was wondering if I could provide the synonym mapping from a database/URL
so that it could be updated through my application.
On Saturday, April 5, 2014 1:47:16 AM UTC+5:30, Binh Ly wrote:
Not sure I understand your question completely, but you can define a
synonym filter to read from an external file it that matters:
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.