# Max\_clause\_count not being set in config file

**URL:** <https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334>\
**Category:** Elasticsearch\
**Created:** [January 10, 2012, 11:55am UTC](https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334 "2012-01-10T11:55:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)\
**Post date:** [January 10, 2012, 11:55am UTC](https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334/1 "2012-01-10T11:55:49Z")

</div>

Hi

I am getting the error the "_too many clauses_" exception on some  
particular keywords, So according to me, its crossing the \*"max\_clause\_Count"  
\*for that query. I tried to set its value in the config file as

_index.query.bool.max\_clause\_count : 10240_

but after setting this value, when i restarted the index, it got failed to  
start. but on removing the setting, it got started. so whats the wrong, can  
you please tell me....

Thanks

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [January 10, 2012, 12:07pm UTC](https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334/2 "2012-01-10T12:07:07Z")

</div>

1. show us your query as it is uncommon to have that many bool clauses  
produced
2. use the forum before posting to it 😉

[http://groups.google.com/group/elasticsearch/browse\_thread/thread/2eacb02872966de2/](http://groups.google.com/group/elasticsearch/browse_thread/thread/2eacb02872966de2/)

Peter.

On 10 Jan., 12:55, Narinder Kaur [narinder.k...@izap.in](mailto:narinder.k...@izap.in) wrote:

> Hi
> 
> I am getting the error the "_too many clauses_" exception on some  
> particular keywords, So according to me, its crossing the \*"max\_clause\_Count"  
> \*for that query. I tried to set its value in the config file as
> 
> _index.query.bool.max\_clause\_count : 10240_
> 
> but after setting this value, when i restarted the index, it got failed to  
> start. but on removing the setting, it got started. so whats the wrong, can  
> you please tell me....
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![Kartavya](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@Kartavya](https://discuss.elastic.co/u/Kartavya)\
**Post date:** [January 10, 2012, 12:08pm UTC](https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334/3 "2012-01-10T12:08:10Z")

</div>

Hi Narinder,

Try to add single space in front of "index.query.bool.max\_clause\_count : 10240".

Hope that solve your problem.

Regards,  
Pulkit Agrawal

On Tue, Jan 10, 2012 at 5:25 PM, Narinder Kaur [narinder.kaur@izap.in](mailto:narinder.kaur@izap.in) wrote:

> Hi
> 
> I am getting the error the "too many clauses" exception on some particular  
> keywords, So according to me, its crossing the "max\_clause\_Count" for that  
> query. I tried to set its value in the config file as
> 
> index.query.bool.max\_clause\_count : 10240
> 
> but after setting this value, when i restarted the index, it got failed to  
> start. but on removing the setting, it got started. so whats the wrong, can  
> you please tell me....
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 11, 2012, 4:16pm UTC](https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334/4 "2012-01-11T16:16:11Z")

</div>

What is the failure that you get when you do set the setting? The setting  
looks fine. Also, wich query did you use that you got this failure with max  
clause count?

On Tue, Jan 10, 2012 at 1:55 PM, Narinder Kaur [narinder.kaur@izap.in](mailto:narinder.kaur@izap.in)wrote:

> Hi
> 
> I am getting the error the "_too many clauses_" exception on some  
> particular keywords, So according to me, its crossing the \*"max\_clause\_Count"  
> \*for that query. I tried to set its value in the config file as
> 
> _index.query.bool.max\_clause\_count : 10240_
> 
> but after setting this value, when i restarted the index, it got failed to  
> start. but on removing the setting, it got started. so whats the wrong, can  
> you please tell me....
> 
> Thanks

---

<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, 3:43am UTC](https://discuss.elastic.co/t/max-clause-count-not-being-set-in-config-file/6334/5 "2017-07-06T03:43:06Z")

</div>


