Modify search.max_buckets

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?

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 for more information.

1 Like

Thanks!

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