# Apply fuzzy match only on short search arguments?

**URL:** https://discuss.elastic.co/t/apply-fuzzy-match-only-on-short-search-arguments/276427
**Category:** Elasticsearch
**Created:** [June 19, 2021, 12:31am UTC](https://discuss.elastic.co/t/apply-fuzzy-match-only-on-short-search-arguments/276427 "2021-06-19T00:31:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rocketman0739](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rocketman0739/32/90503_2.png) [@rocketman0739](https://discuss.elastic.co/u/rocketman0739)
#### Post date: [June 19, 2021, 12:31am UTC](https://discuss.elastic.co/t/apply-fuzzy-match-only-on-short-search-arguments/276427/1 "2021-06-19T00:31:37Z")

</div>

I'm having a problem getting the “too complex to determinize” exception. The index is running a synonym graph filter. The problem happens when I send a longish query which 1) includes several words that have synonyms, and 2) requests fuzzy matching on search suggestions.

It would be great to have a direct fix for this, but in the absence of that, being able to only fuzzy match on short-to-medium search arguments would help a lot. Can I tell Elastic to disable fuzzy matching if (say) the search argument has more than three tokens, or do I have to process the arguments before feeding them to Elastic?

---

<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 17, 2021, 12:32am UTC](https://discuss.elastic.co/t/apply-fuzzy-match-only-on-short-search-arguments/276427/2 "2021-07-17T00:32:08Z")

</div>

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