# Should clause behaves like a must clause in filtered query

**URL:** <https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632>\
**Category:** Elasticsearch\
**Created:** [March 12, 2015, 1:54pm UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632 "2015-03-12T13:54:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pir\_Abdul\_Rasool\_Qur](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Pir\_Abdul\_Rasool\_Qur](https://discuss.elastic.co/u/Pir_Abdul_Rasool_Qur)\
**Post date:** [March 12, 2015, 1:54pm UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632/1 "2015-03-12T13:54:00Z")

</div>

Hello all,

We have a single document in an index:

$ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search?q=\*](http://localhost:9200/test-cbx/bug/_search?q=*)" gives us  
the following response  
{"took":2,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max\_score":1.0,"hits":[{"\_index":"test-cbx","\_type":"bug","\_id":"1","\_score":1.0,"\_source":  
{  
"country": "lu",  
"type": “some type"  
}}]}}

And the following two queries give no results, even though it’s a should  
clause:

$ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
{  
"query": {  
"filtered": {  
"query": {  
"match\_all": {}  
},  
"filter": {  
"bool": {  
"should": {  
"term": {  
"country": "de"  
}  
}  
}  
}  
}  
}  
}'

$ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
{  
"query": {  
"filtered": {  
"query": {  
"bool": {  
"should": [  
{  
"match": {  
"country": {  
"query": "de"

```
                      }
                   }
               }
            ]
        }
     },
     "filter": {
              "term": {
                 "type": “some type"
              }
     }
  }

```

}  
}'

What is the preferred way to approach the bool query? Filter or the query?

Regards,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/25811121-bbb5-44c2-9c07-835597331917%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/25811121-bbb5-44c2-9c07-835597331917%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Pir\_Abdul\_Rasool\_Qur](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Pir\_Abdul\_Rasool\_Qur](https://discuss.elastic.co/u/Pir_Abdul_Rasool_Qur)\
**Post date:** [March 12, 2015, 3:08pm UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632/2 "2015-03-12T15:08:58Z")

</div>

However, the following query returns the expected document,

curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
{  
"query": {  
"filtered": {  
"query": {  
"bool": {  
"must": [  
{  
"match": {  
"type": {  
"query": "some type"

```
                      }
                   }
               }
            ],
            "should": [
               {
                   "match": {
                      "country": {
                          "query": "de"
                      
                      }
                   }
               }
            ]
        }
     },
     "filter": {
              "term": {
                 "type": "some type"
              }
     }
  }

```

}  
}'

May be it is like "should clause" does not work without a "Must clause" in  
query?

On Thursday, March 12, 2015 at 2:54:00 PM UTC+1, parq wrote:

> Hello all,
> 
> We have a single document in an index:
> 
> $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search?q=](http://localhost:9200/test-cbx/bug/_search?q=)\*" gives us  
> the following response
> 
> {"took":2,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max\_score":1.0,"hits":[{"\_index":"test-cbx","\_type":"bug","\_id":"1","\_score":1.0,"\_source":  
> {  
> "country": "lu",  
> "type": “some type"  
> }}]}}
> 
> And the following two queries give no results, even though it’s a should  
> clause:
> 
> $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> {  
> "query": {  
> "filtered": {  
> "query": {  
> "match\_all": {}  
> },  
> "filter": {  
> "bool": {  
> "should": {  
> "term": {  
> "country": "de"  
> }  
> }  
> }  
> }  
> }  
> }  
> }'
> 
> $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> {  
> "query": {  
> "filtered": {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "match": {  
> "country": {  
> "query": "de"
> 
> ```
> }
> }
> }
> ]
> }
> },
> "filter": {
> "term": {
> "type": “some type"
> }
> }
> }
> 
> ```
> 
> }  
> }'
> 
> What is the preferred way to approach the bool query? Filter or the query?
> 
> Regards,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![lesbarstow](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lesbarstow](https://discuss.elastic.co/u/lesbarstow)\
**Post date:** [March 12, 2015, 8:20pm UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632/3 "2015-03-12T20:20:01Z")

</div>

"should" has a "minimum\_should\_match" of 1 when there is no "must" or  
"must\_not". With only a single "should", that makes it act like "must".

On Thu, Mar 12, 2015 at 9:08 AM, parq [pir@colourbox.com](mailto:pir@colourbox.com) wrote:

> However, the following query returns the expected document,
> 
> curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> {  
> "query": {  
> "filtered": {  
> "query": {  
> "bool": {  
> "must": [  
> {  
> "match": {  
> "type": {  
> "query": "some type"
> 
> ```
> }
> }
> }
> ],
> "should": [
> {
> "match": {
> "country": {
> "query": "de"
> 
> }
> }
> }
> ]
> }
> },
> "filter": {
> "term": {
> "type": "some type"
> }
> }
> }
> 
> ```
> 
> }  
> }'
> 
> May be it is like "should clause" does not work without a "Must clause" in  
> query?
> 
> On Thursday, March 12, 2015 at 2:54:00 PM UTC+1, parq wrote:
> 
> > Hello all,
> > 
> > We have a single document in an index:
> > 
> > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search?q=](http://localhost:9200/test-cbx/bug/_search?q=)\*" gives us  
> > the following response  
> > {"took":2,"timed\_out":false,"\_shards":{"total":5,"  
> > successful":5,"failed":0},"hits":{"total":1,"max\_score":  
> > 1.0,"hits":[{"\_index":"test-cbx","\_type":"bug","\_id":"1","  
> > \_score":1.0,"\_source":  
> > {  
> > "country": "lu",  
> > "type": “some type"  
> > }}]}}
> > 
> > And the following two queries give no results, even though it’s a should  
> > clause:
> > 
> > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > {  
> > "query": {  
> > "filtered": {  
> > "query": {  
> > "match\_all": {}  
> > },  
> > "filter": {  
> > "bool": {  
> > "should": {  
> > "term": {  
> > "country": "de"  
> > }  
> > }  
> > }  
> > }  
> > }  
> > }  
> > }'
> > 
> > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > {  
> > "query": {  
> > "filtered": {  
> > "query": {  
> > "bool": {  
> > "should": [  
> > {  
> > "match": {  
> > "country": {  
> > "query": "de"
> > 
> > ```
> > }
> > }
> > }
> > ]
> > }
> > },
> > "filter": {
> > "term": {
> > "type": “some type"
> > }
> > }
> > }
> > 
> > ```
> > 
> > }  
> > }'
> > 
> > What is the preferred way to approach the bool query? Filter or the query?
> > 
> > Regards,
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOppbCUJZ-pqrJMGpvk1Vv-Wqyanmz8XDW6MmBdCj6mvuuXUcg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOppbCUJZ-pqrJMGpvk1Vv-Wqyanmz8XDW6MmBdCj6mvuuXUcg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Pir\_Abdul\_Rasool\_Qur](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Pir\_Abdul\_Rasool\_Qur](https://discuss.elastic.co/u/Pir_Abdul_Rasool_Qur)\
**Post date:** [March 13, 2015, 8:38am UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632/4 "2015-03-13T08:38:48Z")

</div>

I agree. But then the only way to use dynamically generated "should  
clause(s)" is to include a mandatory "must clause" with some identity  
function i.e. added overhead. I also tried "minimum\_should\_match" of 0,  
but it gave 0 documents in result. I was expecting every document in the  
index as result.

Is it a bug or feature? Should it be reported?

On Thursday, March 12, 2015 at 9:20:12 PM UTC+1, Les Barstow wrote:

> "should" has a "minimum\_should\_match" of 1 when there is no "must" or  
> "must\_not". With only a single "should", that makes it act like "must".
> 
> On Thu, Mar 12, 2015 at 9:08 AM, parq \<[p...@colourbox.com](mailto:p...@colourbox.com) \<javascript:\>\>  
> wrote:
> 
> > However, the following query returns the expected document,
> > 
> > curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > {  
> > "query": {  
> > "filtered": {  
> > "query": {  
> > "bool": {  
> > "must": [  
> > {  
> > "match": {  
> > "type": {  
> > "query": "some type"
> > 
> > ```
> > }
> > }
> > }
> > ],
> > "should": [
> > {
> > "match": {
> > "country": {
> > "query": "de"
> >                       
> > }
> > }
> > }
> > ]
> > }
> > },
> > "filter": {
> > "term": {
> > "type": "some type"
> > }
> > }
> > }
> > 
> > ```
> > 
> > }  
> > }'
> > 
> > May be it is like "should clause" does not work without a "Must clause"  
> > in query?
> > 
> > On Thursday, March 12, 2015 at 2:54:00 PM UTC+1, parq wrote:
> > 
> > > Hello all,
> > > 
> > > We have a single document in an index:
> > > 
> > > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search?q=](http://localhost:9200/test-cbx/bug/_search?q=)\*" gives  
> > > us the following response  
> > > {"took":2,"timed\_out":false,"\_shards":{"total":5,"  
> > > successful":5,"failed":0},"hits":{"total":1,"max\_score":  
> > > 1.0,"hits":[{"\_index":"test-cbx","\_type":"bug","\_id":"1","  
> > > \_score":1.0,"\_source":  
> > > {  
> > > "country": "lu",  
> > > "type": “some type"  
> > > }}]}}
> > > 
> > > And the following two queries give no results, even though it’s a should  
> > > clause:
> > > 
> > > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > > {  
> > > "query": {  
> > > "filtered": {  
> > > "query": {  
> > > "match\_all": {}  
> > > },  
> > > "filter": {  
> > > "bool": {  
> > > "should": {  
> > > "term": {  
> > > "country": "de"  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }'
> > > 
> > > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > > {  
> > > "query": {  
> > > "filtered": {  
> > > "query": {  
> > > "bool": {  
> > > "should": [  
> > > {  
> > > "match": {  
> > > "country": {  
> > > "query": "de"
> > > 
> > > ```
> > > }
> > > }
> > > }
> > > ]
> > > }
> > > },
> > > "filter": {
> > > "term": {
> > > "type": “some type"
> > > }
> > > }
> > > }
> > > 
> > > ```
> > > 
> > > }  
> > > }'
> > > 
> > > What is the preferred way to approach the bool query? Filter or the  
> > > query?
> > > 
> > > Regards,
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a1c2a083-c8d2-4108-a91f-b87a8e8d500d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a1c2a083-c8d2-4108-a91f-b87a8e8d500d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![lesbarstow](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lesbarstow](https://discuss.elastic.co/u/lesbarstow)\
**Post date:** [March 13, 2015, 2:15pm UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632/5 "2015-03-13T14:15:05Z")

</div>

The behavior of "should" with no "must" or "must\_not" clauses is the  
documented behavior, inherited from the underlying Lucene engine - it's not  
a bug.

If you're desperate to return results which aren't likely to be respondent  
to the query (which is usually the case when you have only a single search  
term and no documents match it), you could add a "must": [{ "match\_all":{}  
}] - that shouldn't add significant overhead.

--  
Les Barstow, Senior Software Engineer  
Return Path, Inc.

On Fri, Mar 13, 2015 at 2:38 AM, parq [pir@colourbox.com](mailto:pir@colourbox.com) wrote:

> I agree. But then the only way to use dynamically generated "should  
> clause(s)" is to include a mandatory "must clause" with some identity  
> function i.e. added overhead. I also tried "minimum\_should\_match" of 0,  
> but it gave 0 documents in result. I was expecting every document in the  
> index as result.
> 
> Is it a bug or feature? Should it be reported?
> 
> On Thursday, March 12, 2015 at 9:20:12 PM UTC+1, Les Barstow wrote:
> 
> > "should" has a "minimum\_should\_match" of 1 when there is no "must" or  
> > "must\_not". With only a single "should", that makes it act like "must".
> > 
> > On Thu, Mar 12, 2015 at 9:08 AM, parq [p...@colourbox.com](mailto:p...@colourbox.com) wrote:
> > 
> > > However, the following query returns the expected document,
> > > 
> > > curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > > {  
> > > "query": {  
> > > "filtered": {  
> > > "query": {  
> > > "bool": {  
> > > "must": [  
> > > {  
> > > "match": {  
> > > "type": {  
> > > "query": "some type"
> > > 
> > > ```
> > > }
> > > }
> > > }
> > > ],
> > > "should": [
> > > {
> > > "match": {
> > > "country": {
> > > "query": "de"
> > > 
> > > }
> > > }
> > > }
> > > ]
> > > }
> > > },
> > > "filter": {
> > > "term": {
> > > "type": "some type"
> > > }
> > > }
> > > }
> > > 
> > > ```
> > > 
> > > }  
> > > }'
> > > 
> > > May be it is like "should clause" does not work without a "Must clause"  
> > > in query?
> > > 
> > > On Thursday, March 12, 2015 at 2:54:00 PM UTC+1, parq wrote:
> > > 
> > > > Hello all,
> > > > 
> > > > We have a single document in an index:
> > > > 
> > > > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search?q=](http://localhost:9200/test-cbx/bug/_search?q=)\*" gives  
> > > > us the following response  
> > > > {"took":2,"timed\_out":false,"\_shards":{"total":5,"successful  
> > > > ":5,"failed":0},"hits":{"total":1,"max\_score":1.0,"  
> > > > hits":[{"\_index":"test-cbx","\_type":"bug","\_id":"1","\_score"  
> > > > :1.0,"\_source":  
> > > > {  
> > > > "country": "lu",  
> > > > "type": “some type"  
> > > > }}]}}
> > > > 
> > > > And the following two queries give no results, even though it’s a  
> > > > should clause:
> > > > 
> > > > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > > > {  
> > > > "query": {  
> > > > "filtered": {  
> > > > "query": {  
> > > > "match\_all": {}  
> > > > },  
> > > > "filter": {  
> > > > "bool": {  
> > > > "should": {  
> > > > "term": {  
> > > > "country": "de"  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }'
> > > > 
> > > > $ curl -XGET "[http://localhost:9200/test-cbx/bug/\_search](http://localhost:9200/test-cbx/bug/_search)" -d'  
> > > > {  
> > > > "query": {  
> > > > "filtered": {  
> > > > "query": {  
> > > > "bool": {  
> > > > "should": [  
> > > > {  
> > > > "match": {  
> > > > "country": {  
> > > > "query": "de"
> > > > 
> > > > ```
> > > > }
> > > > }
> > > > }
> > > > ]
> > > > }
> > > > },
> > > > "filter": {
> > > > "term": {
> > > > "type": “some type"
> > > > }
> > > > }
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > }  
> > > > }'
> > > > 
> > > > What is the preferred way to approach the bool query? Filter or the  
> > > > query?
> > > > 
> > > > Regards,
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/58b7f178-4c09-4de7-9d38-c7aa3bc39a05%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a1c2a083-c8d2-4108-a91f-b87a8e8d500d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a1c2a083-c8d2-4108-a91f-b87a8e8d500d%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a1c2a083-c8d2-4108-a91f-b87a8e8d500d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a1c2a083-c8d2-4108-a91f-b87a8e8d500d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAOppbCXbvoVH6F%2B%3DcfBRkt7YH6-WSgCZeJvYp-ZX\_DV6GF4\_Lw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAOppbCXbvoVH6F%2B%3DcfBRkt7YH6-WSgCZeJvYp-ZX_DV6GF4_Lw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:27am UTC](https://discuss.elastic.co/t/should-clause-behaves-like-a-must-clause-in-filtered-query/22632/6 "2017-07-06T00:27:01Z")

</div>


