# Search for exact value is not having a good score

**URL:** <https://discuss.elastic.co/t/search-for-exact-value-is-not-having-a-good-score/353914>\
**Category:** Elasticsearch\
**Created:** [February 22, 2024, 7:05pm UTC](https://discuss.elastic.co/t/search-for-exact-value-is-not-having-a-good-score/353914 "2024-02-22T19:05:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonnyfrancis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tonnyfrancis/32/135408_2.png) [@tonnyfrancis](https://discuss.elastic.co/u/tonnyfrancis)\
**Post date:** [February 22, 2024, 7:05pm UTC](https://discuss.elastic.co/t/search-for-exact-value-is-not-having-a-good-score/353914/1 "2024-02-22T19:05:12Z")

</div>

When I try to search for a document using an exact value, I notice that the desired document is not being properly classified, even when the search value is identical to that contained in the document. This has a negative impact on the score assigned to the document, and I am seeking to understand and correct this discrepancy to improve search accuracy.

Query:

```auto
{
  "query": {
    "bool": {
      "should": [
        {
          "fuzzy": {
            "body.provider": "fortune dragon"
          }
        },
        {
          "fuzzy": {
            "body.types": "fortune dragon"
          }
        },
        {
          "fuzzy": {
            "body.tags": "fortune dragon"
          }
        },
        {
          "match": {
            "body.tags": "fortune dragon"
          }
        },
        {
          "fuzzy": {
            "body.name": "fortune dragon"
          }
        },
        {
          "match": {
            "body.name": "fortune dragon"
          }
        },
        {
          "prefix": {
            "body.name": "fortune dragon"
          }
        }
      ],
      "must": [
        {
          "match": {
            "status": "ACTIVE"
          }
        },
        {
          "match": {
            "body.providerStatus": "ACTIVE"
          }
        }
      ],
      "minimum_should_match": 1
    }
  },
  "size": 50,
  "from": 0,
  "sort": [
    {
      "_score": {
        "order": "desc"
      }
    }
  ]
}

```

---

<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:** [March 21, 2024, 7:05pm UTC](https://discuss.elastic.co/t/search-for-exact-value-is-not-having-a-good-score/353914/2 "2024-03-21T19:05:47Z")

</div>

Closed on March 21, 2024, 7:05pm UTC

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