# How to set max\_clause\_count

**URL:** <https://discuss.elastic.co/t/how-to-set-max-clause-count/141185>\
**Category:** Elasticsearch\
**Created:** [July 23, 2018, 1:22pm UTC](https://discuss.elastic.co/t/how-to-set-max-clause-count/141185 "2018-07-23T13:22:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ticcoid](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@ticcoid](https://discuss.elastic.co/u/ticcoid)\
**Post date:** [July 23, 2018, 1:22pm UTC](https://discuss.elastic.co/t/how-to-set-max-clause-count/141185/1 "2018-07-23T13:22:02Z")

</div>

How can I set the max\_clause\_count? The documentation says I just need to add it to the user settings. But when I try to set it such as:

indices.query.bool.max\_clause\_count: 10000

then I get this error: 'indices.query.bool.max\_clause\_count': is not allowed

What am I doing wrong?

---

<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:** [August 20, 2018, 1:22pm UTC](https://discuss.elastic.co/t/how-to-set-max-clause-count/141185/2 "2018-08-20T13:22:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
