# Word with diacritic character does not expand fuzzy terms

**URL:** <https://discuss.elastic.co/t/word-with-diacritic-character-does-not-expand-fuzzy-terms/170358>\
**Category:** Elasticsearch\
**Created:** [February 28, 2019, 1:50pm UTC](https://discuss.elastic.co/t/word-with-diacritic-character-does-not-expand-fuzzy-terms/170358 "2019-02-28T13:50:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [February 28, 2019, 1:50pm UTC](https://discuss.elastic.co/t/word-with-diacritic-character-does-not-expand-fuzzy-terms/170358/1 "2019-02-28T13:50:20Z")

</div>

If we have diacritic character in match query with fuzziness:AUTO, the terms are not expanded as expected.  
This is my query and i have a standard and asciifolding analyzer on 'my\_field\_name' field:

> {  
> "match": {  
> "my\_field\_name": {  
> "query": "crépeault",  
> "operator": "OR",  
> "fuzziness": "AUTO",  
> "prefix\_length": 0,  
> "max\_expansions": 50,  
> "fuzzy\_transpositions": false,  
> "lenient": false,  
> "zero\_terms\_query": "NONE",  
> "auto\_generate\_synonyms\_phrase\_query": false,  
> "boost": 1.0  
> }  
> }  
> }

**CASE 1**  
When i do a \_validate/query?explain  
I can see the generated query is:

> Synonym(my\_field\_name:crepeault my\_field\_name:crépeault)

**CASE 2**  
I change my query value to "crepeault" (Notice the diacritic is replaced by normal 'e')  
I can see the generated query is:

> BooleanQuery ((my\_field\_name:crepault)^0.875 my\_field\_name:crepeault (my\_field\_name:crepault)^0.875 (my\_field\_name:crepeau)^0.71428573 my\_field\_name:crepeault (my\_field\_name:crépault)^0.75 (my\_field\_name:crépeault)^0.8888889 (my\_field\_name:preseault)^0.7777778)

**MY QUERY**  
Why does the expansion of fuzzy terms generate a SynonymQuery if a diacritic is present & why does it expand the one without diacritic into proper fuzzy terms ??  
ES Version: 6.4.1

---

<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:** [March 28, 2019, 1:50pm UTC](https://discuss.elastic.co/t/word-with-diacritic-character-does-not-expand-fuzzy-terms/170358/2 "2019-03-28T13:50:23Z")

</div>

Closed on March 28, 2019, 1:50pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
