maxClauseCount limit increase possible?

Hi,
We are facing a problem due to the number of clauses we are using in the query, It is currently set to 1024 by default.
Would it be possible to increase the maxClauseCount limit?

"reason": "too_many_clauses: maxClauseCount is set to 1024"

opensearch 2.0

Hi,

Please adjust indices.query.bool.max_clause_count [1] but be aware of consequences, hope it helps.

[1] Search settings | Elasticsearch Guide [7.10] | Elastic

Best Regards,
Andriy Redko

I got this payload not allowed error while updating the max_clause_count!!

Hi @sagar , the setting is static, and cannot be updated dynamically, you need to set it in opensearch.yml.

Thank @gaobinlong
This particular setting can be updated from the opensearch/aws console.