# Multi match query and the scoring

**URL:** <https://discuss.elastic.co/t/multi-match-query-and-the-scoring/236573>\
**Category:** Elasticsearch\
**Created:** [June 10, 2020, 7:45pm UTC](https://discuss.elastic.co/t/multi-match-query-and-the-scoring/236573 "2020-06-10T19:45:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitterhh](https://avatars.discourse-cdn.com/v4/letter/g/b19c9b/32.png) [@gitterhh](https://discuss.elastic.co/u/gitterhh)\
**Post date:** [June 10, 2020, 7:45pm UTC](https://discuss.elastic.co/t/multi-match-query-and-the-scoring/236573/1 "2020-06-10T19:45:35Z")

</div>

I have couple documents in the index, and 2 of them are

```auto
{
          "id" : "c0706549-d06c-4043-8086-1b4b3ec1ef95",
          "title" : "Google Pixel XL",
          "memory" : "4GB",
          "quantity" : 3
}
{
          "id" : "23ecaecd-6b3f-4592-b79f-f46a20157221",
          "title" : "Google Pixel XL",
          "memory" : "6GB",
          "quantity" : 1
}

```

And for the query

```auto
{
  "query": { "multi_match": { "query": "pixel xl 6gb", "fields": ["title", "memory"] } }
}

```

I get the response

```auto
{
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "c0706549-d06c-4043-8086-1b4b3ec1ef95",
        "_score" : 2.4280763,
        "_source" : {
          "id" : "c0706549-d06c-4043-8086-1b4b3ec1ef95",
          "title" : "Google Pixel XL",
          "memory" : "4GB",
          "quantity" : 3
        }
      },
      {
        "_index" : "my_index",
        "_type" : "_doc",
        "_id" : "23ecaecd-6b3f-4592-b79f-f46a20157221",
        "_score" : 2.4280763,
        "_source" : {
          "id" : "23ecaecd-6b3f-4592-b79f-f46a20157221",
          "title" : "Google Pixel XL",
          "memory" : "6GB",
          "quantity" : 1
        }
      }

```

But I expect that the document with the `memory` field `6GB` will be on top, can you please advise why this happens and how to fix it?

---

<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:** [July 8, 2020, 7:49pm UTC](https://discuss.elastic.co/t/multi-match-query-and-the-scoring/236573/2 "2020-07-08T19:49:15Z")

</div>

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