# Max\_expansions for query\_string queries?

**URL:** <https://discuss.elastic.co/t/max-expansions-for-query-string-queries/10542>\
**Category:** Elasticsearch\
**Created:** [January 29, 2013, 4:28pm UTC](https://discuss.elastic.co/t/max-expansions-for-query-string-queries/10542 "2013-01-29T16:28:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Webster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brian_webster/32/2176_2.png) [@Brian\_Webster](https://discuss.elastic.co/u/Brian_Webster)\
**Post date:** [January 29, 2013, 4:28pm UTC](https://discuss.elastic.co/t/max-expansions-for-query-string-queries/10542/1 "2013-01-29T16:28:36Z")

</div>

Queries of type "query\_string" allow for some fuzzy matching.

There are config values for "fuzzy\_prefix\_length" and "fuzzy\_min\_sim".

Is there a way to set max\_expansions? I'm not even sure what the default  
is.

Thanks,

Brian Webster

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [January 30, 2013, 9:44am UTC](https://discuss.elastic.co/t/max-expansions-for-query-string-queries/10542/2 "2013-01-30T09:44:29Z")

</div>

On Tue, 2013-01-29 at 08:28 -0800, Brian Webster wrote:

> Queries of type "query\_string" allow for some fuzzy matching.
> 
> There are config values for "fuzzy\_prefix\_length" and  
> "fuzzy\_min\_sim".
> 
> Is there a way to set max\_expansions? I'm not even sure what the  
> default is.

Yes, you can use "fuzzy\_max\_expansions", and the default is 50.

clint

> Thanks,
> 
> ## Brian Webster
> 
> You received this message because you are subscribed to the Google  
> Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:54am UTC](https://discuss.elastic.co/t/max-expansions-for-query-string-queries/10542/3 "2017-07-06T02:54:00Z")

</div>


