# Filter for Multivalues field not working

**URL:** <https://discuss.elastic.co/t/filter-for-multivalues-field-not-working/242611>\
**Category:** Elasticsearch\
**Created:** [July 25, 2020, 5:42pm UTC](https://discuss.elastic.co/t/filter-for-multivalues-field-not-working/242611 "2020-07-25T17:42:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthi96](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@Karthi96](https://discuss.elastic.co/u/Karthi96)\
**Post date:** [July 25, 2020, 5:42pm UTC](https://discuss.elastic.co/t/filter-for-multivalues-field-not-working/242611/1 "2020-07-25T17:42:03Z")

</div>

Hi All,

I'm trying to filter a multivalued field from ES but unfortunately, it's not working.

```auto
GET/_search{
  "query": {
    "bool": {
      "must": {
        "multi_match": {
          "fields": [
            "title^3",
            "subTitle",
            "keywords",
            "pluralName"
          ],
          "query": "fake"
        }
      },
      "filter": {
        "terms": {
          "applicableDevices": [
            "BOV950",
            "SmartOven",
            "BMC800",
            "BOV900"
          ]
        }
      }
    }
  }
}

```

This is mapping in elasticsearch

```auto
"applicableDevices": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }

```

Tried a lot but didn't the expected output.

can you guide or let me know the mistakes, please.

Thanks in advance.

---

<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:** [August 22, 2020, 5:54pm UTC](https://discuss.elastic.co/t/filter-for-multivalues-field-not-working/242611/2 "2020-08-22T17:54:32Z")

</div>

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