# \_msearch : handling filter and whitespace

**URL:** <https://discuss.elastic.co/t/-msearch-handling-filter-and-whitespace/49401>\
**Category:** Elasticsearch\
**Created:** [May 6, 2016, 11:21am UTC](https://discuss.elastic.co/t/-msearch-handling-filter-and-whitespace/49401 "2016-05-06T11:21:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemantsajnani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hemantsajnani/32/21741_2.png) [@hemantsajnani](https://discuss.elastic.co/u/hemantsajnani)\
**Post date:** [May 6, 2016, 11:21am UTC](https://discuss.elastic.co/t/-msearch-handling-filter-and-whitespace/49401/1 "2016-05-06T11:21:54Z")

</div>

Experts,

#1 How to handle search with whitespace using wildcards in \_msearch?

The below case is not resulting records where "Jackie Chan" is coming.

index" : "shows","type":"all"}  
{"query" : {"wildcard" : {"\_all": "_Jackie Chan_"}}, "from" : 0, "size" : 2}  
{"index" : "movies","type":"all"}  
{"query" : {"wildcard" : {"\_all": "_Jackie Chan_"}}, "from" : 0, "size" : 2}  
{"index" : "stars","type":"all"}  
{"query" : {"wildcard" : {"title": "_Jackie Chan_"}}, "from" : 0, "size" : 2}

#2 Filter issue

Please guide about how can we apply filters in \_msearch using wildcards (please consider above example).

Regards,  
Hemant

---

<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 5, 2017, 10:53pm UTC](https://discuss.elastic.co/t/-msearch-handling-filter-and-whitespace/49401/2 "2017-07-05T22:53:20Z")

</div>


