# How to know the max\_expansions terms in fuzzy query

**URL:** <https://discuss.elastic.co/t/how-to-know-the-max-expansions-terms-in-fuzzy-query/170365>\
**Category:** Elasticsearch\
**Created:** [February 28, 2019, 2:57pm UTC](https://discuss.elastic.co/t/how-to-know-the-max-expansions-terms-in-fuzzy-query/170365 "2019-02-28T14:57:44Z")\
**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, 2:57pm UTC](https://discuss.elastic.co/t/how-to-know-the-max-expansions-terms-in-fuzzy-query/170365/1 "2019-02-28T14:57:44Z")

</div>

Hi,  
Is there a way to know the expanded terms according to the Levenstiens Distance ?

For Eg: If my input is 'noël'. What would be the terms generated while querying if the fuzziness is set to AUTO in a match query

> {  
> "match": {  
> "my\_field": {  
> "query": "noël",  
> "operator": "OR",  
> "fuzziness": "AUTO",  
> "prefix\_length": 0,  
> "max\_expansions": 50,  
> "fuzzy\_transpositions": false,  
> "lenient": false,  
> "zero\_terms\_query": "NONE",  
> "auto\_generate\_synonyms\_phrase\_query": true  
> }  
> }  
> }

---

<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, 3:09pm UTC](https://discuss.elastic.co/t/how-to-know-the-max-expansions-terms-in-fuzzy-query/170365/2 "2019-03-28T15:09:43Z")

</div>

Closed on March 28, 2019, 3:09pm UTC

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