Skip to content

ElasticSearch: failed to create query: field expansion matches too many fields

ElasticSearch error:

failed to create query: field expansion matches too many fields, limit: 1024, got: 1380

To fix it, add "indices.query.bool.max_clause_count: 2048" in elasticsearch.yml

echo 'indices.query.bool.max_clause_count: 2048' >> /etc/elasticsearch/elasticsearch.yml

Restart elasticsearch:

systemctl restart elasticsearch