# Index analyzer settings: is there a way to

**URL:** <https://discuss.elastic.co/t/index-analyzer-settings-is-there-a-way-to/6782>\
**Category:** Elasticsearch\
**Created:** [February 22, 2012, 11:49am UTC](https://discuss.elastic.co/t/index-analyzer-settings-is-there-a-way-to/6782 "2012-02-22T11:49:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Wegorek](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michal\_Wegorek](https://discuss.elastic.co/u/Michal_Wegorek)\
**Post date:** [February 22, 2012, 11:49am UTC](https://discuss.elastic.co/t/index-analyzer-settings-is-there-a-way-to/6782/1 "2012-02-22T11:49:27Z")

</div>

Is there an index analyzer setting to:

1. Treat diacritic letters (in my case polish diacritic letters ą, ć,  
ę, ł, ń, ó, ś, ź, ż) as US alphabet equivalents during search:  
ą -\> a  
ć -\> c  
..

What I mean is when I do search with pattern 'abc' i want to see in  
results 'abc' as well as 'ąbc', but when I search for 'ąbc' I want ES  
to find only 'ąbc'

This settings do not work, I expected asciifolding might be doing the  
trick:

index.analysis.analyzer.default.type: standard  
index.analysis.analyzer.default.stopwords: _none_  
index.analysis.analyzer.default.tokenizer: standard  
index.analysis.analyzer.default.filter: [standard, lowercase, stop,  
asciifolding, porter\_stem]

ES 18.7

Cheers!  
Michal

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 26, 2012, 9:41am UTC](https://discuss.elastic.co/t/index-analyzer-settings-is-there-a-way-to/6782/2 "2012-02-26T09:41:29Z")

</div>

Are you sure you are using a query that also analyzes the search text? (query\_string, field, text)? If so, can you gist a recreation ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help))?

On Wednesday, February 22, 2012 at 1:49 PM, Michal Wegorek wrote:

> Is there an index analyzer setting to:
> 
> 1. Treat diacritic letters (in my case polish diacritic letters ą, ć,  
> ę, ł, ń, ó, ś, ź, ż) as US alphabet equivalents during search:  
> ą -\> a  
> ć -\> c  
> ..
> 
> What I mean is when I do search with pattern 'abc' i want to see in  
> results 'abc' as well as 'ąbc', but when I search for 'ąbc' I want ES  
> to find only 'ąbc'
> 
> This settings do not work, I expected asciifolding might be doing the  
> trick:
> 
> index.analysis.analyzer.default.type: standard  
> index.analysis.analyzer.default.stopwords: _none_  
> index.analysis.analyzer.default.tokenizer: standard  
> index.analysis.analyzer.default.filter: [standard, lowercase, stop,  
> asciifolding, porter\_stem]
> 
> ES 18.7
> 
> Cheers!  
> Michal

---

<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:38am UTC](https://discuss.elastic.co/t/index-analyzer-settings-is-there-a-way-to/6782/3 "2017-07-06T03:38:17Z")

</div>


