I have a pretty big terms query in elasticsearch, so I get too_many_clauses: maxClauseCount is set to 1024
too_many_clauses: maxClauseCount is set to 1024
I tried increasing it in the elasticsearch.y
In Elasticsearch 5 index.query.bool.max_clause_count has been deprecated/removed.
index.query.bool.max_clause_count
Insert in your elasticsearch.yml file indices.query.bool.max_clause_count : n instead (where n - new supported number of clauses).
elasticsearch.yml
indices.query.bool.max_clause_count : n
NOTE: Here is link to documentation.