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