# Fuzzy query with simple query string

**URL:** <https://discuss.elastic.co/t/fuzzy-query-with-simple-query-string/204745>\
**Category:** Elasticsearch\
**Created:** [October 23, 2019, 1:09am UTC](https://discuss.elastic.co/t/fuzzy-query-with-simple-query-string/204745 "2019-10-23T01:09:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgina](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@georgina](https://discuss.elastic.co/u/georgina)\
**Post date:** [October 23, 2019, 1:09am UTC](https://discuss.elastic.co/t/fuzzy-query-with-simple-query-string/204745/1 "2019-10-23T01:09:08Z")

</div>

I'm trying to get fuzzy searching working using simple\_query\_string.

An example query:  
"query":{  
"simple\_query\_string": {  
"query" : "drover",  
"fields" : [  
"description^1.0",  
"title^1.0",  
"content^1.0"  
],  
"flags" : "PHRASE",  
"default\_operator" : "or",  
"analyze\_wildcard" : false,  
"quote\_field\_suffix" : ".exact",  
"auto\_generate\_synonyms\_phrase\_query" : false,  
"fuzzy\_prefix\_length" : 1,  
"fuzzy\_max\_expansions" : 10,  
"fuzzy\_transpositions" : true,  
"boost" : 1.0  
}  
}

returns no results. I know that if I update flags to "flags" : "PHRASE|FUZZY", and put in a ~ I can get fuzzy results, but I really want this to occur automatically.

The multi match query below returns results with fuzzy matching.  
"query":{  
"multi\_match": {  
"query" : "drover",  
"fields" : [  
"description^1.0",  
"title^1.0",  
"content^1.0"  
],  
"auto\_generate\_synonyms\_phrase\_query" : false,  
"fuzziness": "AUTO",  
"max\_expansions": 10,  
"fuzzy\_transpositions": true,  
"boost" : 1.0  
}  
}

Is there anyway to get fuzzy matching occurring automatically for the simple query string query like it does for multi match?

Thanks Georgina.

---

<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:** [November 20, 2019, 1:09am UTC](https://discuss.elastic.co/t/fuzzy-query-with-simple-query-string/204745/2 "2019-11-20T01:09:10Z")

</div>

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