# Simple\_query\_string or query\_string with fuzziness in some fields

**URL:** <https://forum.opensearch.org/t/simple-query-string-or-query-string-with-fuzziness-in-some-fields/12864>\
**Category:** OpenSearch\
**Tags:** query-workbench\
**Created:** [March 2, 2023, 8:37am UTC](https://forum.opensearch.org/t/simple-query-string-or-query-string-with-fuzziness-in-some-fields/12864 "2023-03-02T08:37:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![basitmm](https://avatars.discourse-cdn.com/v4/letter/b/ce73a5/32.png) [@basitmm](https://forum.opensearch.org/u/basitmm)\
**Post date:** [March 2, 2023, 8:37am UTC](https://forum.opensearch.org/t/simple-query-string-or-query-string-with-fuzziness-in-some-fields/12864/1 "2023-03-02T08:37:58Z")

</div>

Hi,

is it possible to use simple\_query\_string with fuzziness only on special fields?  
As I know the query should be “ifhone~1” =\> to match iPhone.  
But no user will type “~1” in a simple search filed. So I want to set fuzziness to auto…  
But this only can be done in query\_search? But then for all fields?

for example:  
I need to set fuzzy only to the “title-field” and not to the manufacturer.  
Is there a possibility to do this?

At the moment my query for the search is a ugly and very long query with should/must/…

---

<div class="post-metadata">

**Author:** ![radu.gheorghe](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/radu.gheorghe/32/3516_2.png) [@radu.gheorghe](https://forum.opensearch.org/u/radu.gheorghe)\
**Post date:** [March 3, 2023, 1:48pm UTC](https://forum.opensearch.org/t/simple-query-string-or-query-string-with-fuzziness-in-some-fields/12864/2 "2023-03-03T13:48:06Z")

</div>

Hi,

Yeah, I don’t see a way around using a bool query. Because you’ll need do allow/disallow fuzziness based on the fields you need to target, so each “policy” will need its own simple\_query\_string query.

You could do that with query\_string indeed, something like:

```auto
title:ifhone~1 OR manufacturer:apple

```
