# Es multi\_match filter problem

**URL:** https://discuss.elastic.co/t/es-multi-match-filter-problem/10379
**Category:** Elasticsearch
**Created:** [January 16, 2013, 9:12pm UTC](https://discuss.elastic.co/t/es-multi-match-filter-problem/10379 "2013-01-16T21:12:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sulemanmubarik](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sulemanmubarik](https://discuss.elastic.co/u/sulemanmubarik)
#### Post date: [January 16, 2013, 9:12pm UTC](https://discuss.elastic.co/t/es-multi-match-filter-problem/10379/1 "2013-01-16T21:12:54Z")

</div>

Hi I have this search query (Ford in Detroit)

It is evaluating as (Ford AND in AND Detroit)

When I apply the stop word filter (analyzer) it become (Ford AND AND  
Detroit)

Here is the JSON which ES is evaluating

{ "filtered" : { "query" : { "constant\_score" : { "query" : { "bool" : {  
"must" : [ { "multi\_match" : { "query" : "in", "fields" : [ "authorName",  
"authorTags", "cnt\_en", "permalink", "t\_en" ], "type" : "boolean",  
"operator" : "AND", "use\_dis\_max" : false } }, { "multi\_match" : { "query"  
: "Detroit", "fields" : [ "authorName", "authorTags", "cnt\_en",  
"permalink", "t\_en" ], "type" : "boolean", "operator" : "AND",  
"use\_dis\_max" : false } }, { "multi\_match" : { "query" : "Ford", "fields" :  
["authorName", "authorTags", "cnt\_en", "permalink", "t\_en"], "type" :  
"boolean", "operator" : "AND", "use\_dis\_max" : false } } ] } }, "boost" :  
1.0 } }, "filter" : { "and" : { "filters" : [ { "or" : { "filters" : [ {  
"term" : { "authorCountry" : "United States", "\_cache" : false } } ] } }, {  
"or" : { "filters" : [ { "term" : { "authorLanguage" : 12, "\_cache" : false  
} } ] } }, { "numeric\_range" : { "publishedDate" : { "from" :  
1355616000000, "to" : 1358467199999, "include\_lower" : true,  
"include\_upper" : true } } } ] } } } }

Is there a way so the ES analyzer remove the multi\_match when it find the  
stop word(in this case it is first multi\_match) and in that case my search  
term will become (Ford AND Detroit)

Thanks

--

---

<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 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/es-multi-match-filter-problem/10379/2 "2017-07-06T02:56:03Z")

</div>


