# How to know if the result was due to a fuzzysearch?

**URL:** https://discuss.elastic.co/t/how-to-know-if-the-result-was-due-to-a-fuzzysearch/348726
**Category:** Elasticsearch
**Created:** [December 6, 2023, 1:50pm UTC](https://discuss.elastic.co/t/how-to-know-if-the-result-was-due-to-a-fuzzysearch/348726 "2023-12-06T13:50:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vidhaat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vidhaat/32/128815_2.png) [@vidhaat](https://discuss.elastic.co/u/vidhaat)
#### Post date: [December 6, 2023, 1:50pm UTC](https://discuss.elastic.co/t/how-to-know-if-the-result-was-due-to-a-fuzzysearch/348726/1 "2023-12-06T13:50:34Z")

</div>

I have a query where I get results which may or may not have fuzzy search results. I want to get analytics on what results are the result of fuzzy search. How can this be achieved ?

````auto
{
  "query": {
    "bool": {
      "filter": [
        {
          "bool": {
            "must": [
              {
                "terms": {
                  "ent_id": [
                    "2e874714-038f-40f2-92ea-51aa8e99722e"
                  ],
                  "boost": 1
                }
              } ],
            "adjust_pure_negative": true,
            "boost": 1
          }
        }
      ],
      "should": [
        {
          "multi_match": {
            "query": "talent",
            "fields": [
              "description^50.0",
              "description.exactMatch^2500.0",
              "description.keyword^60.0",
              "description.shingles^70.0",
              "description_md^50.0",
              "page_content^50.0",
              "search_keywords^6000.0",
              "step_description^20.0",
              "step_description.keyword^30.0",
              "step_description.shingles^40.0",
              "step_note^20.0",
              "title^800.0",
              "title.exactMatch^12000.0",
              "title.keyword^900.0",
            ],
            "type": "best_fields",
            "operator": "OR",
            "slop": 0,
            "fuzziness": "AUTO",
            "prefix_length": 1,
            "max_expansions": 50,
            "zero_terms_query": "NONE",
            "auto_generate_synonyms_phrase_query": true,
            "fuzzy_transpositions": true,
            "boost": 1
          }
        }
      ],
      "adjust_pure_negative": true,
      "boost": 1
    }
  },
  "min_score": 0.01,
  "sort": [
    {
      "_score": {
        "order": "desc"
      }
    },
    {
      "source": {
        "order": "asc"
      }
    }
  ]
}```
````

---

<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: [January 3, 2024, 1:51pm UTC](https://discuss.elastic.co/t/how-to-know-if-the-result-was-due-to-a-fuzzysearch/348726/2 "2024-01-03T13:51:28Z")

</div>

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