# HELP! Fuzzyness of skirt-shirt

**URL:** <https://discuss.elastic.co/t/help-fuzzyness-of-skirt-shirt/143692>\
**Category:** Elasticsearch\
**Created:** [August 9, 2018, 12:54pm UTC](https://discuss.elastic.co/t/help-fuzzyness-of-skirt-shirt/143692 "2018-08-09T12:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gelinger777](https://avatars.discourse-cdn.com/v4/letter/g/ba9def/32.png) [@gelinger777](https://discuss.elastic.co/u/gelinger777)\
**Post date:** [August 9, 2018, 12:54pm UTC](https://discuss.elastic.co/t/help-fuzzyness-of-skirt-shirt/143692/1 "2018-08-09T12:54:35Z")

</div>

We have a index of products . I have used a copy\_to function to copy brand, product\_title to full\_data .

Search is done very simple

```
  'query' => [

                      'match' => [

                              'full_data'=>[

                            'query'=> $search_query,
                                  'operator'=>'and',
                             'fuzziness'=> "AUTO",

                                  ]

                       ] ]

```

Everything works perfect, untill person will search for

kenzo skirt girl . Because fuzzyness is on, skirt is also transfered to shirt and all shirts are shown too.  
How to forbid elasticsearch to make fuzzy some specific words ?

---

<div class="post-metadata">

**Author:** ![mayya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayya/32/83147_2.png) [@mayya](https://discuss.elastic.co/u/mayya)\
**Post date:** [August 23, 2018, 9:23pm UTC](https://discuss.elastic.co/t/help-fuzzyness-of-skirt-shirt/143692/2 "2018-08-23T21:23:59Z")

</div>

[Fuzzy query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-fuzzy-query.html) has a number of settings to influence fuzzy search. One of them that may help you is `prefix_length`. If you set `"prefix_length"=2`, 2 first characters will not be “fuzzified”, and your search for "skirt" will not return "shirt".

---

<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:** [September 20, 2018, 9:24pm UTC](https://discuss.elastic.co/t/help-fuzzyness-of-skirt-shirt/143692/3 "2018-09-20T21:24:00Z")

</div>

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