# Analyzer tokenizer in search mode

**URL:** <https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108>\
**Category:** Elasticsearch\
**Created:** [June 17, 2016, 7:44am UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108 "2016-06-17T07:44:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [June 17, 2016, 7:44am UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108/1 "2016-06-17T07:44:09Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [June 17, 2016, 9:28am UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108/2 "2016-06-17T09:28:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [June 20, 2016, 10:18am UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108/3 "2016-06-20T10:18:02Z")

</div>

Can i set a generic analyzer for all my index, without insert all my analyzer into a single index?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [June 20, 2016, 10:35am UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108/4 "2016-06-20T10:35:23Z")

</div>

What you can do is to configure an index template so that analyzers will be created automatically at index creation time.

---

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [June 20, 2016, 10:42am UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108/5 "2016-06-20T10:42:00Z")

</div>

i see this and i don't like it...but i think i have no other solutions.

Thank for help me!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:42pm UTC](https://discuss.elastic.co/t/analyzer-tokenizer-in-search-mode/53108/6 "2017-07-05T22:42:21Z")

</div>


