Query time synonyms application

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

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Very nice!

Thanks Simon.

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

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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?

--
Ivan

On Wed, Aug 21, 2013 at 3:21 AM, kul kuldeep.bora@gmail.com wrote:

Very nice!

Thanks Simon.

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

Thanks

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.