# Clarification on SHOULD bool query (w/ must, filter)

**URL:** <https://discuss.elastic.co/t/clarification-on-should-bool-query-w-must-filter/45731>\
**Category:** Elasticsearch\
**Created:** [March 29, 2016, 8:28pm UTC](https://discuss.elastic.co/t/clarification-on-should-bool-query-w-must-filter/45731 "2016-03-29T20:28:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjhuang](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@jjhuang](https://discuss.elastic.co/u/jjhuang)\
**Post date:** [March 29, 2016, 8:28pm UTC](https://discuss.elastic.co/t/clarification-on-should-bool-query-w-must-filter/45731/1 "2016-03-29T20:28:27Z")

</div>

Hi, in Elasticsearch 2.x, the `filter` argument was added to the `bool` query. I've noticed that `should` does not enforce the "1 or more" match if `filter` is also included as an option. The documentation ([https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html)) states that `should` only matches 1 or more if no `must` is present. So essentially, the question is whether `filter` is also considered to be the same as `must` (except it does not contribute to the score)? If so, perhaps we should clarify this in the reference guide?

Thanks.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [March 31, 2016, 8:50am UTC](https://discuss.elastic.co/t/clarification-on-should-bool-query-w-must-filter/45731/2 "2016-03-31T08:50:46Z")

</div>

We should clarify the reference guide indeed. I pushed a fix, it should be reflected online soon. Thanks for reporting this bug!

---

<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, 11:03pm UTC](https://discuss.elastic.co/t/clarification-on-should-bool-query-w-must-filter/45731/3 "2017-07-05T23:03:43Z")

</div>


