# Query string analyzer not used when specified with ElasticSearch version 0.18.4

**URL:** https://discuss.elastic.co/t/query-string-analyzer-not-used-when-specified-with-elasticsearch-version-0-18-4/5927
**Category:** Elasticsearch
**Created:** [November 21, 2011, 4:35pm UTC](https://discuss.elastic.co/t/query-string-analyzer-not-used-when-specified-with-elasticsearch-version-0-18-4/5927 "2011-11-21T16:35:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alain\_ROUEN](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Alain\_ROUEN](https://discuss.elastic.co/u/Alain_ROUEN)
#### Post date: [November 21, 2011, 4:35pm UTC](https://discuss.elastic.co/t/query-string-analyzer-not-used-when-specified-with-elasticsearch-version-0-18-4/5927/1 "2011-11-21T16:35:17Z")

</div>

Hi,

I'm using elasticsearch 0.17.4 for month now on several projects. And I upgraded to 0.18.4 last friday.

And with this version I'm experiencing a strange bug :

In our projects we index multi-lingual content in the same index (en/fr/de). So we apply different custom analyzer for each language.

To do so we use the \_analyzer option in mapping to apply the correct analyzer following the value of a field ("site" in our case).

Then at query time, we use a query string with the analyzer option to specify the same analyzer than at index time.

The bug is :

- With 0.17.4, at query time the specified analyzer is correct
- With 0.18.4, at query time the specified analyzer is never used. ElasticSearch revert to a default analyzer (default\_analyzer when specified in config file)

Here the gist : [https://gist.github.com/1383146](https://gist.github.com/1383146)

In my test I use the french word "accidents" that is correctly indexed as "accident" thanks to the stemmer. When the search is working as expected query like "accident" or "accidentés" should find the original document with "accidents"

Thanks for your help.

Alain

---

<div class="post-metadata">

### Author: ![Alain\_ROUEN](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Alain\_ROUEN](https://discuss.elastic.co/u/Alain_ROUEN)
#### Post date: [November 22, 2011, 10:54am UTC](https://discuss.elastic.co/t/query-string-analyzer-not-used-when-specified-with-elasticsearch-version-0-18-4/5927/2 "2011-11-22T10:54:13Z")

</div>

Not yet accepted ?

---

<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 6, 2017, 3:47am UTC](https://discuss.elastic.co/t/query-string-analyzer-not-used-when-specified-with-elasticsearch-version-0-18-4/5927/3 "2017-07-06T03:47:57Z")

</div>


