# Fuzzysearch not working as expected

**URL:** https://discuss.elastic.co/t/fuzzysearch-not-working-as-expected/305450
**Category:** Elasticsearch
**Created:** [May 24, 2022, 6:04am UTC](https://discuss.elastic.co/t/fuzzysearch-not-working-as-expected/305450 "2022-05-24T06:04:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Reset\_Button](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reset_button/32/106066_2.png) [@Reset\_Button](https://discuss.elastic.co/u/Reset_Button)
#### Post date: [May 24, 2022, 6:04am UTC](https://discuss.elastic.co/t/fuzzysearch-not-working-as-expected/305450/1 "2022-05-24T06:04:25Z")

</div>

Hello!  
I try to implement fuzzysearch like explained here [How to Use Fuzzy Query Matches in Elasticsearch | HackerNoon](https://hackernoon.com/how-to-use-fuzzy-query-matches-in-elasticsearch-dh1h3167) - but get strange results.

```auto
{
  "query": {
    "match" : {
      "term": {
          "query" : "At what age do dogs go into heat?",
          "fuzziness": "5"
      } 
    }
  },
  "size" : 20
}

```

gives me such results  
What does it mean when a dog is in heat? (distance - 23)  
What does it mean when a dog is in heat? (distance - 29)  
etx

My index is

```auto
    "db-terms": {
        "aliases": {},
        "mappings": {
            "properties": {
                "term": {
                    "type": "text",
                    "analyzer": "english"
                }
            }
        },

```

If I change field to "keyword" it makes as

```auto
 "term": {
                    "type": "text",
                    "fields": {
                        "keyword": {
                            "type": "keyword",
                            "ignore_above": 256
                        }
                    }
                }

```

and result is almost the same

What am I doing wrong ?

---

<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: [June 21, 2022, 6:04am UTC](https://discuss.elastic.co/t/fuzzysearch-not-working-as-expected/305450/2 "2022-06-21T06:04:39Z")

</div>

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