# Unexpected results on transpositions

**URL:** <https://discuss.elastic.co/t/unexpected-results-on-transpositions/240734>\
**Category:** Elasticsearch\
**Created:** [July 10, 2020, 5:33pm UTC](https://discuss.elastic.co/t/unexpected-results-on-transpositions/240734 "2020-07-10T17:33:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Solis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diego_solis/32/71955_2.png) [@Diego\_Solis](https://discuss.elastic.co/u/Diego_Solis)\
**Post date:** [July 10, 2020, 5:33pm UTC](https://discuss.elastic.co/t/unexpected-results-on-transpositions/240734/1 "2020-07-10T17:33:38Z")

</div>

Hello folks,  
Is there a way to calculate/analyze how many expansions I would like to use in my query. I was playing with the query below, and the default 50 max\_expansions was not enough to get "John" out of "Jhon". I don't want to "abuse" of the max\_expansions due to the warnings everywhere about possible performance issues, but not sure is there is a way to "experiment" with it kind of what you can do with "\_analyze".  
Thanks in advance

PD: query I was trying.

```auto
    {
            "query":{
                "bool": {
                    "must":[
                        {
                            "match":{
                                "firstname": {
                                    "query": "jhon",
                                    "fuzziness": "2" 
                                    ,"fuzzy_transpositions":true //supposedly is default
                                }
                            }
                        },
                        {
                            "match":{
                                "lastname": {
                                    "query": "doe"
                                }
                            }
                        }
                    ]
                }
            }
        }

```

---

<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:** [August 7, 2020, 5:33pm UTC](https://discuss.elastic.co/t/unexpected-results-on-transpositions/240734/2 "2020-08-07T17:33:44Z")

</div>

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