cirot87
(ciro)
June 17, 2016, 7:44am
1
Hi, i have i problem...in my project i need to set an analyzer-filter-tokenizer based on the language choose by the user, before executing query.
So i need to set this parameters in real time and only when a search is done, but i don't wan't to set all the available analysis on my index.
i want do this search:
query : match : title : "I want a new job", analyzer : "my_analyzer", filter : "my_filter", tokenizer : "my_tokenizer"
I can do this? or exists some features for do this?
jpountz
(Adrien Grand)
June 17, 2016, 9:28am
2
You would need to define one analyzer for every language you support in the index settings, and then pick the right analyzer name in the match query.
cirot87
(ciro)
June 20, 2016, 10:18am
3
Can i set a generic analyzer for all my index, without insert all my analyzer into a single index?
jpountz
(Adrien Grand)
June 20, 2016, 10:35am
4
What you can do is to configure an index template so that analyzers will be created automatically at index creation time.
cirot87
(ciro)
June 20, 2016, 10:42am
5
i see this and i don't like it...but i think i have no other solutions.
Thank for help me!