What is the upper limit on index.query.bool.max_clause_count for different ES versions?

(Abbas Hussain) #1

What is the maximum that we can set for index.query.bool.max_clause_count(old versions) and indices.query.bool.max_clause_count (>5.1)?

(Peter Dyson) #2

Hi Abbas,

I believe it's 1024 in versions >5.1

Though I'd like to help by finding out how you're hitting this limit.
If you only need to filter docs with a bool query, then perhaps you can do a bool filter instead of a bool must.
This would avoid this max setting as this setting is specific to scoring so shouldn't apply to filtering.
It depends if you need to score each document though.

Most cases I've seen where this has been hit have been filtering scenarios rather than scoring ones.

(system) #3

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