# Is there an option that does not change the keyword match score?

**URL:** <https://discuss.elastic.co/t/is-there-an-option-that-does-not-change-the-keyword-match-score/360334>\
**Category:** Elastic Search\
**Created:** [May 28, 2024, 4:49am UTC](https://discuss.elastic.co/t/is-there-an-option-that-does-not-change-the-keyword-match-score/360334 "2024-05-28T04:49:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbasosuho](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bbasosuho/32/123999_2.png) [@bbasosuho](https://discuss.elastic.co/u/bbasosuho)\
**Post date:** [May 28, 2024, 4:49am UTC](https://discuss.elastic.co/t/is-there-an-option-that-does-not-change-the-keyword-match-score/360334/1 "2024-05-28T04:49:56Z")

</div>

Hi  
Currently, when searching for a match keyword, the score changes slightly.  
The results may change when searching due to slight differences.  
Is there an option that does not change the keyword match score?  
Thanks

ex)  
{  
"query": {  
"bool": {  
"must": [  
{ "match": { "contents": "test" } }

```
  ]
}

```

}  
}

---

<div class="post-metadata">

**Author:** ![canelia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/canelia/32/141857_2.png) [@canelia](https://discuss.elastic.co/u/canelia)\
**Post date:** [May 28, 2024, 5:09am UTC](https://discuss.elastic.co/t/is-there-an-option-that-does-not-change-the-keyword-match-score/360334/2 "2024-05-28T05:09:33Z")

</div>

```auto
GET /some_index/_search?search_type=dfs_query_then_fetch
{
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "contents": "test"
          }
        }
      ]
    }
  }
}

```

검색시 각 샤드별로 스코어링 후 취합하기 때문에 점수가 달라질 수 있습니다  
전체 샤드 검색 결과를 취합 후 스코어링 할 수 있으나 약간의 성능 저하가 있을 수 있습니다

---

<div class="post-metadata">

**Author:** ![Kathleen\_DeRusso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kathleen_derusso/32/132039_2.png) [@Kathleen\_DeRusso](https://discuss.elastic.co/u/Kathleen_DeRusso)\
**Post date:** [May 28, 2024, 12:24pm UTC](https://discuss.elastic.co/t/is-there-an-option-that-does-not-change-the-keyword-match-score/360334/3 "2024-05-28T12:24:30Z")

</div>

If you're running into different scores for the same query, your replicas may be inconsistent. You can fix this for individual users by setting [preference](https://www.elastic.co/guide/en/elasticsearch/reference/current/consistent-scoring.html#_scores_are_not_reproducible) as described in this document.

If your issue is that the scores are different for different queries, this is expected behavior.

---

<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 25, 2024, 12:25pm UTC](https://discuss.elastic.co/t/is-there-an-option-that-does-not-change-the-keyword-match-score/360334/4 "2024-06-25T12:25:17Z")

</div>

Closed on June 25, 2024, 12:25pm UTC

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