# Rollup job - should and minimum\_should\_match not working

**URL:** <https://discuss.elastic.co/t/rollup-job-should-and-minimum-should-match-not-working/303829>\
**Category:** Elasticsearch\
**Tags:** rollups\
**Created:** [May 3, 2022, 12:30pm UTC](https://discuss.elastic.co/t/rollup-job-should-and-minimum-should-match-not-working/303829 "2022-05-03T12:30:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [May 5, 2022, 7:52am UTC](https://discuss.elastic.co/t/rollup-job-should-and-minimum-should-match-not-working/303829/4 "2022-05-05T07:52:45Z")

</div>

A ‘should’ clause clause is only mandatory if it is on its own in a ‘bool’ clause. When it is alongside a must/filter/must\_not it is relegated to an optional clause that gives extra points to scores of docs matching the other mandatory clauses.  
To make a should act as a mandatory set of ORed choices it can often be necessary to wrap it in a bool container on its own and then embed that as a must inside the main bool query.

---

_[View the full topic](https://discuss.elastic.co/t/rollup-job-should-and-minimum-should-match-not-working/303829)._
