# Filter is not working with multi \_match

**URL:** <https://discuss.elastic.co/t/filter-is-not-working-with-multi-match/122505>\
**Category:** Elasticsearch\
**Created:** [March 5, 2018, 12:17pm UTC](https://discuss.elastic.co/t/filter-is-not-working-with-multi-match/122505 "2018-03-05T12:17:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajamanickam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajamanickam/32/28465_2.png) [@Rajamanickam](https://discuss.elastic.co/u/Rajamanickam)\
**Post date:** [March 5, 2018, 12:17pm UTC](https://discuss.elastic.co/t/filter-is-not-working-with-multi-match/122505/1 "2018-03-05T12:17:19Z")

</div>

Filter is not working for me ☹ even though i'm having matching record with this search term, The search result shows empty hit. Can anyone please help me out.

```
 `GET my_index/my_type2/_search
{
"query": {
        "bool": {
            "must": {
                "multi_match": {
                    "query": "sample",
                    "fields": ["Tags"]
                }
            },
            "filter": {
                "term": {
                    "Collection":"collectionTwo"
                }
            }
        }
    }
}`
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 5, 2018, 3:42pm UTC](https://discuss.elastic.co/t/filter-is-not-working-with-multi-match/122505/2 "2018-03-05T15:42:38Z")

</div>

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Here may be try to filter with `collectiontwo` instead of `collectionTwo`

---

<div class="post-metadata">

**Author:** ![Rajamanickam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajamanickam/32/28465_2.png) [@Rajamanickam](https://discuss.elastic.co/u/Rajamanickam)\
**Post date:** [March 6, 2018, 6:38am UTC](https://discuss.elastic.co/t/filter-is-not-working-with-multi-match/122505/3 "2018-03-06T06:38:11Z")

</div>

Thanks @dadoonet, You already solved my issue. Its case sensitive problem only. You saved my time thanks a lot and here after i'll post my query with full recreation.

---

<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 3, 2018, 6:38am UTC](https://discuss.elastic.co/t/filter-is-not-working-with-multi-match/122505/4 "2018-04-03T06:38:17Z")

</div>

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