# Updating indices.query.bool.max\_clause\_count in k8s environment

**URL:** https://discuss.elastic.co/t/updating-indices-query-bool-max-clause-count-in-k8s-environment/295999
**Category:** Elasticsearch
**Tags:** docker
**Created:** [February 1, 2022, 8:41pm UTC](https://discuss.elastic.co/t/updating-indices-query-bool-max-clause-count-in-k8s-environment/295999 "2022-02-01T20:41:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gvslim](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@gvslim](https://discuss.elastic.co/u/gvslim)
#### Post date: [February 1, 2022, 8:41pm UTC](https://discuss.elastic.co/t/updating-indices-query-bool-max-clause-count-in-k8s-environment/295999/1 "2022-02-01T20:41:23Z")

</div>

I tried to run a query on a recently updated 7.16.3 environment and got the following error ""field expansion matches too many fields, limit: 1024, got: 1328". I then went to set indices.query.bool.max\_clause\_count to 2048 in my configmap file.  
##########

- apiVersion: v1  
data:  
elasticsearch.yml: |  
indices.query.bool.max\_clause\_count: 2048  
kind: ConfigMap  
########

I applied the new configmap to my nodes they and the /opt/elasticsearch/config/elasticsearch.yml file on mypods was updated

#### 

$ view /opt/elasticsearch/config/elasticsearch.yml  
indices.query.bool.max\_clause\_count: 2048  
#########

However if I do a "GET /\_cluster/settings/?include\_defaults" from Kibana or a "curl -XGET [http://localhost:9200/\_cluster/settings/?include\_defaults](http://localhost:9200/_cluster/settings/?include_defaults)" from one of my nodes It still shows that my "max\_clause\_count" is at 1024

#### 

"max\_clause\_count" : "1024"

#### 

Do any of you have any ideas on how to change this setting or what I am doing wrong?

Thanks

---

<div class="post-metadata">

### Author: ![gvslim](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@gvslim](https://discuss.elastic.co/u/gvslim)
#### Post date: [February 21, 2022, 5:23pm UTC](https://discuss.elastic.co/t/updating-indices-query-bool-max-clause-count-in-k8s-environment/295999/2 "2022-02-21T17:23:02Z")

</div>

Anyone?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 21, 2022, 5:23pm UTC](https://discuss.elastic.co/t/updating-indices-query-bool-max-clause-count-in-k8s-environment/295999/3 "2022-03-21T17:23:28Z")

</div>

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