# Why I'm getting 0 results when fuzziness is more than 2?

**URL:** https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883
**Category:** Elasticsearch
**Created:** [June 22, 2022, 1:27pm UTC](https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883 "2022-06-22T13:27:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![asil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asil/32/97607_2.png) [@asil](https://discuss.elastic.co/u/asil)
#### Post date: [June 22, 2022, 1:27pm UTC](https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883/1 "2022-06-22T13:27:13Z")

</div>

I'm using `elastic search 7.6.2`

I have index with the following mapping:

```auto
        "mappings": {
            "properties": {
                "content": {"type": "text"},
            }
        }

```

with 3 documents:

1. michael jordan and scottie pippen - NBA is a professional basketball league in North America.
2. michael jordan and scottie pippen - National Basketball Association
3. michael jordan and scottie pippen

I'm running the following simple query:

```auto
  "query":{
              "bool":{
                 "must":[
                    {
                       "span_near":{
                          "clauses":[
                             {
                                "span_multi":{
                                   "match":{
                                      "fuzzy":{
                                         "content":{
                                            "value":"hael",
                                            "fuzziness":4
                                         }
                                      }
                                   }
                                }
                             },                           
                          ],
                          "slop":1,
                          "in_order": "true"
                       }
                    }
                 ]
              }
           }
    }

```

And I'm getting 0 results.

1. Why I'm not getting results ? (The value `hael` has 3 missing letters, and the `fuzziness` is 4) ?
2. What is the meaning of `slop` (at the end of the query) ? (It seems that it doesn't do nothing)

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [June 22, 2022, 1:31pm UTC](https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883/2 "2022-06-22T13:31:13Z")

</div>

The [maximum value for fuzziness that Elasticsearch supports is 2](https://www.elastic.co/guide/en/elasticsearch/reference/8.2/common-options.html#fuzziness). I am surprised it does not return an error indicating this.

It is worth noting that the query you specified witha 4 letter string and fuzziness of 4 would (if there was not a limitation in place) match any word with 4 or less letters as well as a lot of words that are up to 4 characters longer assuming they contain some of the characters in the string. This would return very useful results.

---

<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 20, 2022, 1:31pm UTC](https://discuss.elastic.co/t/why-im-getting-0-results-when-fuzziness-is-more-than-2/307883/3 "2022-07-20T13:31:52Z")

</div>

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