Elasticsearch - set max_clause_count
<p>I have a pretty big terms query in elasticsearch, so I get 
<code>too_many_clauses: maxClauseCount is set to 1024</code></p>

<p>I tried increasing it in the elasticsearch.yml by</p>

<pre><code>index:
query:
bool:
max_clause_count: 10240
</code></pre>

<p>and via </p>

<pre><code>curl -XPUT "http://localhost:9200/plastic/_settings" -d '{ "index" : { "max_clause_count" : 10000 } }'
</code></pre>

<p>but nothing worked. My index is named plastic.</p>