# Expected behavior with stopword in "must" clause?

**URL:** https://discuss.elastic.co/t/expected-behavior-with-stopword-in-must-clause/5046
**Category:** Elasticsearch
**Created:** [August 3, 2011, 4:05pm UTC](https://discuss.elastic.co/t/expected-behavior-with-stopword-in-must-clause/5046 "2011-08-03T16:05:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tejus\_Parikh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tejus_parikh/32/3146_2.png) [@Tejus\_Parikh](https://discuss.elastic.co/u/Tejus_Parikh)
#### Post date: [August 3, 2011, 4:05pm UTC](https://discuss.elastic.co/t/expected-behavior-with-stopword-in-must-clause/5046/1 "2011-08-03T16:05:27Z")

</div>

What's the expected behavior when you have a bool query with a stop word in  
the "must" clause? On our setup, a query with a stop word will return zero  
results.

For example:  
{  
"query" :  
{  
"bool" : {  
"must" : {  
"term" : { "body" : "iphone" }  
}  
}  
}  
}

returns some 16000 results on our document index. However:

{  
"query" :  
{  
"bool" : {  
"must" : {  
"term" : { "body" : "iphone" }  
},  
"must" : {  
"term" : { "body" : "on" }  
}  
}  
}  
}

returns zero.

thanks!

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [August 4, 2011, 5:57pm UTC](https://discuss.elastic.co/t/expected-behavior-with-stopword-in-must-clause/5046/2 "2011-08-04T17:57:38Z")

</div>

Yep, thats the expected behavior, since the second must clause won't match  
any docs.

On Wed, Aug 3, 2011 at 7:05 PM, Tejus Parikh [tejus@vijedi.net](mailto:tejus@vijedi.net) wrote:

> What's the expected behavior when you have a bool query with a stop word in  
> the "must" clause? On our setup, a query with a stop word will return zero  
> results.
> 
> For example:  
> {  
> "query" :  
> {  
> "bool" : {  
> "must" : {  
> "term" : { "body" : "iphone" }  
> }  
> }  
> }  
> }
> 
> returns some 16000 results on our document index. However:
> 
> {  
> "query" :  
> {  
> "bool" : {  
> "must" : {  
> "term" : { "body" : "iphone" }  
> },  
> "must" : {  
> "term" : { "body" : "on" }  
> }  
> }  
> }  
> }
> 
> returns zero.
> 
> 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, 3:58am UTC](https://discuss.elastic.co/t/expected-behavior-with-stopword-in-must-clause/5046/3 "2017-07-06T03:58:15Z")

</div>


