# maxClauseCount configuration

**URL:** <https://discuss.elastic.co/t/maxclausecount-configuration/17646>\
**Category:** Elasticsearch\
**Created:** [May 21, 2014, 3:53pm UTC](https://discuss.elastic.co/t/maxclausecount-configuration/17646 "2014-05-21T15:53:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pko](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pko](https://discuss.elastic.co/u/pko)\
**Post date:** [May 21, 2014, 3:53pm UTC](https://discuss.elastic.co/t/maxclausecount-configuration/17646/1 "2014-05-21T15:53:41Z")

</div>

Hi

I got exception "TooManyClauses[maxClauseCount is set to 1024"  
How to configure maxClauseCount in elasticsearch?

--  
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/d0101e59-7565-40ad-a205-792dda947af6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d0101e59-7565-40ad-a205-792dda947af6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![pko](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pko](https://discuss.elastic.co/u/pko)\
**Post date:** [May 22, 2014, 9:47am UTC](https://discuss.elastic.co/t/maxclausecount-configuration/17646/2 "2014-05-22T09:47:54Z")

</div>

Fixed. I added "index.query.bool.max\_clause\_count: 10000" to  
elasticsearch.yaml

On Wednesday, May 21, 2014 6:53:41 PM UTC+3, [p...@ciklum.com](mailto:p...@ciklum.com) wrote:

> Hi
> 
> I got exception "TooManyClauses[maxClauseCount is set to 1024"  
> How to configure maxClauseCount in elasticsearch?

--  
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/5d7f4bc8-92c2-4892-8413-c69402e101d6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5d7f4bc8-92c2-4892-8413-c69402e101d6%40googlegroups.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, 1:27am UTC](https://discuss.elastic.co/t/maxclausecount-configuration/17646/3 "2017-07-06T01:27:42Z")

</div>


