# Too\_many\_clauses error in Elasticsearch 6.6.1

**URL:** <https://discuss.elastic.co/t/too-many-clauses-error-in-elasticsearch-6-6-1/297748>\
**Category:** Elasticsearch\
**Created:** [February 21, 2022, 11:41am UTC](https://discuss.elastic.co/t/too-many-clauses-error-in-elasticsearch-6-6-1/297748 "2022-02-21T11:41:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitra\_hegde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_hegde/32/54151_2.png) [@chaitra\_hegde](https://discuss.elastic.co/u/chaitra_hegde)\
**Post date:** [February 21, 2022, 11:41am UTC](https://discuss.elastic.co/t/too-many-clauses-error-in-elasticsearch-6-6-1/297748/1 "2022-02-21T11:41:19Z")

</div>

Hi,  
I am using ES 6.6.1. Getting below error

```auto
too_many_clauses: maxClauseCount is set to 1024

```

From [Search Settings | Elasticsearch Guide [6.6] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/search-settings.html) ,

> In case you consider to increase this setting, make sure you exhausted all other options to avoid having to do this

So I want to know what all other options available? Can increasing memory/cpu solves this?

---

<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:** [February 21, 2022, 11:41am UTC](https://discuss.elastic.co/t/too-many-clauses-error-in-elasticsearch-6-6-1/297748/2 "2022-02-21T11:41:19Z")

</div>

Elasticsearch 6.6 is [EOL](https://www.elastic.co/support/eol) and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 21, 2022, 11:23pm UTC](https://discuss.elastic.co/t/too-many-clauses-error-in-elasticsearch-6-6-1/297748/3 "2022-02-21T23:23:43Z")

</div>

What's your use case here that's causing you to need to increase it?

---

<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:** [March 21, 2022, 11:24pm UTC](https://discuss.elastic.co/t/too-many-clauses-error-in-elasticsearch-6-6-1/297748/4 "2022-03-21T23:24:28Z")

</div>

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