# Failed to create query - maxClauseCount is set to 1024

**URL:** <https://discuss.elastic.co/t/failed-to-create-query-maxclausecount-is-set-to-1024/302898>\
**Category:** Elasticsearch\
**Created:** [April 21, 2022, 10:49am UTC](https://discuss.elastic.co/t/failed-to-create-query-maxclausecount-is-set-to-1024/302898 "2022-04-21T10:49:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 22, 2022, 1:39pm UTC](https://discuss.elastic.co/t/failed-to-create-query-maxclausecount-is-set-to-1024/302898/4 "2022-04-22T13:39:39Z")

</div>

Look at this solution, similar to your problem.

> [@maxClauseCount error on Multi Match after Upgrade to 7.10.1](https://discuss.elastic.co/t/maxclausecount-error-on-multi-match-after-upgrade-to-7-10-1/266160):
>
> We are in the process of upgrading from Elasticsearch 6.5.4 to 7.10.1. We have some searches that worked fine against 6.5.4 but are getting "failed to create query: maxClauseCount is set to 1024" errors against 7.10.1. Here is an example of the query: "query": { "bool": { "must": [ { "query\_string": { "default\_operator": "and", "fields": [ "field1^4", "field2^3", …

---

_[View the full topic](https://discuss.elastic.co/t/failed-to-create-query-maxclausecount-is-set-to-1024/302898)._
