# Modify search.max\_buckets

**URL:** <https://discuss.elastic.co/t/modify-search-max-buckets/217175>\
**Category:** Elasticsearch\
**Created:** [January 30, 2020, 12:03pm UTC](https://discuss.elastic.co/t/modify-search-max-buckets/217175 "2020-01-30T12:03:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Post date:** [January 30, 2020, 12:03pm UTC](https://discuss.elastic.co/t/modify-search-max-buckets/217175/1 "2020-01-30T12:03:05Z")

</div>

Hi,

I am trying to modify "search.max\_buckets" by:

curl -X PUT "localhost:9200/\_cluster/settings?pretty" -H 'Content-Type: application/json' -d'  
{  
"defaults" : {  
"search.max\_buckets" : "15000"  
}  
}  
'

and I get the below error :

{  
"error" : {  
"root\_cause" : [  
{  
"type" : "action\_request\_validation\_exception",  
"reason" : "Validation Failed: 1: no settings to update;"  
}  
],  
"type" : "action\_request\_validation\_exception",  
"reason" : "Validation Failed: 1: no settings to update;"  
},  
"status" : 400  
}

What is the wrong with it?

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [January 30, 2020, 12:14pm UTC](https://discuss.elastic.co/t/modify-search-max-buckets/217175/2 "2020-01-30T12:14:44Z")

</div>

Hi @Voula_Mikr,

you need to specify either `persistent` or `transient` in place of `defaults`. You cannot update the `defaults`, they are baked into Elasticsearch.

See [Cluster update settings API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html) for more information.

---

<div class="post-metadata">

**Author:** ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Post date:** [January 30, 2020, 1:01pm UTC](https://discuss.elastic.co/t/modify-search-max-buckets/217175/3 "2020-01-30T13:01:31Z")

</div>

Thanks!

---

<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:** [February 27, 2020, 1:01pm UTC](https://discuss.elastic.co/t/modify-search-max-buckets/217175/4 "2020-02-27T13:01:40Z")

</div>

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