# ES ignores index.query.bool.max\_clause\_count in elasticsearch.yml

**URL:** <https://discuss.elastic.co/t/es-ignores-index-query-bool-max-clause-count-in-elasticsearch-yml/19325>\
**Category:** Elasticsearch\
**Created:** [August 18, 2014, 2:17pm UTC](https://discuss.elastic.co/t/es-ignores-index-query-bool-max-clause-count-in-elasticsearch-yml/19325 "2014-08-18T14:17:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![l\_daedelow](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@l\_daedelow](https://discuss.elastic.co/u/l_daedelow)\
**Post date:** [August 18, 2014, 2:17pm UTC](https://discuss.elastic.co/t/es-ignores-index-query-bool-max-clause-count-in-elasticsearch-yml/19325/1 "2014-08-18T14:17:04Z")

</div>

It seems to me that ES ignores the index.query.bool.max\_clause\_count  
argument in elasticsearch.yml

Setting index.query.bool.max\_clause\_count: 5000 results in the following  
error:

Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses:  
maxClauseCount is set to 1024

Any solution whats going wrong here?

--  
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/ddedd43b-9f1c-4373-9280-671d7cc828a9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ddedd43b-9f1c-4373-9280-671d7cc828a9%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:07am UTC](https://discuss.elastic.co/t/es-ignores-index-query-bool-max-clause-count-in-elasticsearch-yml/19325/2 "2017-07-06T01:07:56Z")

</div>


