# Boolean similarity module with fuzzy search scoring

**URL:** <https://discuss.elastic.co/t/boolean-similarity-module-with-fuzzy-search-scoring/241705>\
**Category:** Elasticsearch\
**Created:** [July 17, 2020, 5:59pm UTC](https://discuss.elastic.co/t/boolean-similarity-module-with-fuzzy-search-scoring/241705 "2020-07-17T17:59:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mckennajp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mckennajp/32/72411_2.png) [@mckennajp](https://discuss.elastic.co/u/mckennajp)\
**Post date:** [July 17, 2020, 5:59pm UTC](https://discuss.elastic.co/t/boolean-similarity-module-with-fuzzy-search-scoring/241705/1 "2020-07-17T17:59:23Z")

</div>

I've updated the default similarity module for my index to be boolean. The score should only be based on whether the query terms match or not.

> Boolean similarity gives terms a score equal to their query boost

However, when I do a fuzzy search, I am not getting a score equal to the boost value. Is this a bug? Is there a configuration I'm missing to just use the query boost value for the score when doing a fuzzy search? e.g. Here is the relevant part of my query:

```auto
    {
      "query": {
        "multi_match": {
                    "fields": [
                      "canonicalName_EN.prefix^1000"
                    ],
                    "minimum_should_match": "4<80%",
                    "query": "boston",
                    "fuzziness": "AUTO",
                    "prefix_length": 2,
                    "type": "best_fields"
                  }
      },
      "size": 6,
      "_source": ["display_EN"]
    }

```

And here is the explain:

```auto
    {
      "value": 3300.0,
      "description": "sum of:",
      "details": [
        {
          "value": 800.0,
          "description": "weight(canonicalName_EN.prefix:bosto in 58400) [PerFieldSimilarity], result of:",
          "details": [
            {
              "value": 800.0,
              "description": "score(, doc=58400), computed from:",
              "details": [
                {
                  "value": 800.0,
                  "description": "query boost",
                  "details": []
                }
              ]
            }
          ]
        },
        {
          "value": 1000.0,
          "description": "weight(canonicalName_EN.prefix:boston in 58400) [PerFieldSimilarity], result of:",
          "details": [
            {
              "value": 1000.0,
              "description": "score(, doc=58400), computed from:",
              "details": [
                {
                  "value": 1000.0,
                  "description": "query boost",
                  "details": []
                }
              ]
            }
          ]
        },
        {
          "value": 833.3333,
          "description": "weight(canonicalName_EN.prefix:boston in 58400) [PerFieldSimilarity], result of:",
          "details": [
            {
              "value": 833.3333,
              "description": "score(, doc=58400), computed from:",
              "details": [
                {
                  "value": 833.3333,
                  "description": "query boost",
                  "details": []
                }
              ]
            }
          ]
        },
        {
          "value": 666.6666,
          "description": "weight(canonicalName_EN.prefix:boston h in 58400) [PerFieldSimilarity], result of:",
          "details": [
            {
              "value": 666.6666,
              "description": "score(, doc=58400), computed from:",
              "details": [
                {
                  "value": 666.6666,
                  "description": "query boost",
                  "details": []
                }
              ]
            }
          ]
        }
      ]
    }

```

---

<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:** [August 14, 2020, 5:59pm UTC](https://discuss.elastic.co/t/boolean-similarity-module-with-fuzzy-search-scoring/241705/2 "2020-08-14T17:59:30Z")

</div>

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