# Cannot increase maxClauseCount

**URL:** <https://discuss.elastic.co/t/cannot-increase-maxclausecount/172088>\
**Category:** Elasticsearch\
**Created:** [March 13, 2019, 8:49am UTC](https://discuss.elastic.co/t/cannot-increase-maxclausecount/172088 "2019-03-13T08:49:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atom/32/34758_2.png) [@atom](https://discuss.elastic.co/u/atom)\
**Post date:** [March 13, 2019, 8:49am UTC](https://discuss.elastic.co/t/cannot-increase-maxclausecount/172088/1 "2019-03-13T08:49:44Z")

</div>

Hi,  
i have created a docker container with elasticsearch 6.6.1  
A query, that works on my server without any problems (version 6.2.4), doesn't work on in my docker container. I am getting this message:

```
"caused_by":{"type":"too_many_clauses","reason":"maxClauseCount is set to 1024"}}

```

I put the following setting into my elasticsearch.yml: indices.query.bool.max\_clause\_count: 20000  
and i also upgraded the server to 6.6.2.

Is this is a bug or am i doing something wrong?

It has also been reported here:

> <https://stackoverflow.com/questions/54914067/elasticsearch-maxclause-is-set-to-1024-error-even-if-it-was-changed-in-yml-fil>

  

> <https://github.com/elastic/elasticsearch/issues/39528>

---

<div class="post-metadata">

**Author:** ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)\
**Post date:** [March 13, 2019, 9:15am UTC](https://discuss.elastic.co/t/cannot-increase-maxclausecount/172088/2 "2019-03-13T09:15:40Z")

</div>

This is indeed a bug. The fix is already merged and will be available in the next minor release (`6.7.0`), only `6.6.x` is affected if you run the default distribution, the OSS distribution does not have the bug.

---

<div class="post-metadata">

**Author:** ![atom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/atom/32/34758_2.png) [@atom](https://discuss.elastic.co/u/atom)\
**Post date:** [March 13, 2019, 9:27am UTC](https://discuss.elastic.co/t/cannot-increase-maxclausecount/172088/3 "2019-03-13T09:27:55Z")

</div>

thats bad. Okay...  
Thank you very much 🙂

---

<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:** [April 10, 2019, 9:27am UTC](https://discuss.elastic.co/t/cannot-increase-maxclausecount/172088/4 "2019-04-10T09:27:56Z")

</div>

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