yes you can have a query time analyzer in your mapping "search_analyzer"
which can be changed without reindexing. you can just use synonyms as query
time instead of index time.
simon
On Tuesday, August 20, 2013 10:39:03 AM UTC+2, kul wrote:
Is it possible to apply synonyms at query time? Or any other method to
avoid reindexing the whole data again with change in synonym definitions ?
for myuse case, typical synonyms looks like
camelcase => CamelCase
GAPS, gaps => Gaps
Barca => Barcelona
Also, I looked around but could not find anything on how to make the change
to synonym file take effect?
For small no. of records i can see that it takes effect immediately after
restart of es server,
But for large no. of records i do not see synonym being applied even after
restart.
Thanks
On Tuesday, August 20, 2013 9:01:08 PM UTC+5:30, simonw wrote:
yes you can have a query time analyzer in your mapping "search_analyzer"
which can be changed without reindexing. you can just use synonyms as query
time instead of index time.
simon
On Tuesday, August 20, 2013 10:39:03 AM UTC+2, kul wrote:
Is it possible to apply synonyms at query time? Or any other method to
avoid reindexing the whole data again with change in synonym definitions ?
for myuse case, typical synonyms looks like
camelcase => CamelCase
GAPS, gaps => Gaps
Barca => Barcelona
If you are using synonyms at query time, any changes to the synonym file
should take into effect after a restart. Can you share your analyzer
configuration?
Also, I looked around but could not find anything on how to make the
change to synonym file take effect?
For small no. of records i can see that it takes effect immediately after
restart of es server,
But for large no. of records i do not see synonym being applied even after
restart.
Thanks
On Tuesday, August 20, 2013 9:01:08 PM UTC+5:30, simonw wrote:
yes you can have a query time analyzer in your mapping "search_analyzer"
which can be changed without reindexing. you can just use synonyms as query
time instead of index time.
simon
On Tuesday, August 20, 2013 10:39:03 AM UTC+2, kul wrote:
Is it possible to apply synonyms at query time? Or any other method to
avoid reindexing the whole data again with change in synonym definitions ?
for myuse case, typical synonyms looks like
camelcase => CamelCase
GAPS, gaps => Gaps
Barca => Barcelona
I'm wondering if you really need synonyms like "camelcase => CamelCase",
and "GAPS, gaps => Gaps"? Just using a lowercase filter will give you hits
on these documents.
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.