# Multi\_match unexpectedly changing which fields are returned

**URL:** <https://discuss.elastic.co/t/multi-match-unexpectedly-changing-which-fields-are-returned/172654>\
**Category:** Elasticsearch\
**Created:** [March 16, 2019, 11:35pm UTC](https://discuss.elastic.co/t/multi-match-unexpectedly-changing-which-fields-are-returned/172654 "2019-03-16T23:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![outsidein](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/outsidein/32/42176_2.png) [@outsidein](https://discuss.elastic.co/u/outsidein)\
**Post date:** [March 16, 2019, 11:35pm UTC](https://discuss.elastic.co/t/multi-match-unexpectedly-changing-which-fields-are-returned/172654/1 "2019-03-16T23:35:51Z")

</div>

Using v6.3.1 I'm doing a multi\_match query with a a filter and it's working, but not returning all the fields for the documents.

Here's the query:

```auto
GET /myindex/_doc/_search
{
  "from": 0,
  "size": 1,
  "query": {
    "bool": {
      "must": [
        {
          "multi_match": {
            "query": "dress",
            "fields": ["name"]
          }
        }
      ],
      "filter": [
        { "term": { "shop.keyword": "a_6ojOupk0Y6ejlHfak0OGvj" } }
      ]
    }
  }
}

```

That correctly returns documents with a name containing "dress", but some of the fields are missing -- namely, an images field that contains an array of strings.

I'm able to get the images field in the result if I change the fields searched to be `"fields": ["name", "images"]` or remove multi\_match entirely. Additionally -- other arrays of strings from the same document are returned without issue.

Did I miss something in the docs? Should a multi\_match search be changing which fields are returned for a document?

Edit: I might be a dummy and didn't confirm it was the _same_ document being returned.... ugh. Will report back after I do that...

---

<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:** [April 13, 2019, 11:35pm UTC](https://discuss.elastic.co/t/multi-match-unexpectedly-changing-which-fields-are-returned/172654/2 "2019-04-13T23:35:54Z")

</div>

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