# Is this score wrong?

**URL:** <https://discuss.elastic.co/t/is-this-score-wrong/234301>\
**Category:** Elasticsearch\
**Created:** [May 26, 2020, 10:05am UTC](https://discuss.elastic.co/t/is-this-score-wrong/234301 "2020-05-26T10:05:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hezhiqiang](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@hezhiqiang](https://discuss.elastic.co/u/hezhiqiang)\
**Post date:** [May 26, 2020, 10:05am UTC](https://discuss.elastic.co/t/is-this-score-wrong/234301/1 "2020-05-26T10:05:57Z")

</div>

query is:

```auto
GET kid_book/_search?search_type=dfs_query_then_fetch
{
  "query": {
    "bool": {
      "must": [
        {
          "bool": {
            "must": [
              {
                "match": {
                  "search": "牛津阅读树完整版"
                }
              }
            ]
          }
        },
        {
          "bool": {
            "should": [
              {
                "term": {
                  "status": {
                    "value": "0"
                  }
                }
              },
              {
                "term": {
                  "creator": {
                    "value": "143"
                  }
                }
              }
            ]
          }
        }
      ]
    }
  },
  "_source": ["book_id", "hot_index", "search"],
  "sort": [
    {
      "_score": {
        "order": "desc"
      },
      "hot_index" : {
        "order": "desc"
      }
    }
  ]
}

```

result is:

```auto
  "hits": {
    "total": 20304,
    "max_score": null,
    "hits": [
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "1087505",
        "_score": 33.471928,
        "_source": {
          "search": "蛮荒记(完整版)",
          "hot_index": 0,
          "book_id": 1087505
        },
        "sort": [
          33.471928,
          0
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "887476",
        "_score": 32.095734,
        "_source": {
          "search": "催眠(完整版)",
          "hot_index": 0,
          "book_id": 887476
        },
        "sort": [
          32.095734,
          0
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "2251437",
        "_score": 30.83145,
        "_source": {
          "search": "变型数独解法完整版2",
          "hot_index": 0,
          "book_id": 2251437
        },
        "sort": [
          30.83145,
          0
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "2251435",
        "_score": 30.83145,
        "_source": {
          "search": "变型数独解法完整版4",
          "hot_index": 0,
          "book_id": 2251435
        },
        "sort": [
          30.83145,
          0
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "2251438",
        "_score": 30.83145,
        "_source": {
          "search": "变型数独解法完整版1",
          "hot_index": 0,
          "book_id": 2251438
        },
        "sort": [
          30.83145,
          0
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "2251436",
        "_score": 30.83145,
        "_source": {
          "search": "变型数独解法完整版3",
          "hot_index": 0,
          "book_id": 2251436
        },
        "sort": [
          30.83145,
          0
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "3748825",
        "_score": 30.591633,
        "_source": {
          "search": "牛津阅读树完整版Level 3 Oxford Reading Tree Level 3",
          "hot_index": 5101,
          "book_id": 3748825
        },
        "sort": [
          30.591633,
          5101
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "3748821",
        "_score": 30.328512,
        "_source": {
          "search": "牛津阅读树完整版Level 1+ Oxford Reading Tree Level 1+",
          "hot_index": 11608,
          "book_id": 3748821
        },
        "sort": [
          30.328512,
          11608
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "3748823",
        "_score": 30.328512,
        "_source": {
          "search": "牛津阅读树完整版Level 2 Oxford Reading Tree Level 2",
          "hot_index": 8222,
          "book_id": 3748823
        },
        "sort": [
          30.328512,
          8222
        ]
      },
      {
        "_index": "kid_book_v14",
        "_type": "kid_book",
        "_id": "3748829",
        "_score": 30.328512,
        "_source": {
          "search": "牛津阅读树完整版Level 4 Oxford Reading Tree Level 4",
          "hot_index": 4261,
          "book_id": 3748829
        },
        "sort": [
          30.328512,
          4261
        ]
      }
    ]

```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 26, 2020, 10:50am UTC](https://discuss.elastic.co/t/is-this-score-wrong/234301/2 "2020-05-26T10:50:30Z")

</div>

This is very hard to tell without your data. However you can easily figure out, how the score came to be

Check out the [explain parameter](https://www.elastic.co/guide/en/elasticsearch/reference/7.7/search-search.html#request-body-search-explain) or on a per document base the [explain API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html)

Hope this helps!

---

<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 23, 2020, 10:50am UTC](https://discuss.elastic.co/t/is-this-score-wrong/234301/3 "2020-06-23T10:50:33Z")

</div>

Closed on June 23, 2020, 10:50am UTC

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