Unable to set search.max_buckets for _cluster/settings

m trying to curl -XPUT "http://localhost:9200/_cluster/settings -H 'Content-Type: application/json'{"transient":{"search.max_buckets": 200000}} but am getting below error please correct me if i am wrong
C:\Users\ssuparna.TEMENOSGROUP>curl -XPUT "http://localhost:9200/_cluster/settings -H 'Content-Type: application/json'{"transient":{"search.max_buckets": 200000}}
curl: (3) [globbing] nested brace in column 87

Please help me to solve this
curl: (3) [globbing] nested brace in column 87

Try this @Suparna_Shankar

curl -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{  "transient": {    "search.max_buckets": 200000  }}'

Hi @aaron-nimocks thanks for the code i have tried it but getting below error

C:\Users\ssuparna.TEMENOSGROUP>curl -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{ "transient": { "search.max_buckets": 200000 }}'
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: transient
curl: (3) [globbing] unmatched brace in column 1
curl: (6) Could not resolve host: search.max_buckets
curl: (6) Could not resolve host: 200000
curl: (3) [globbing] unmatched close brace/bracket in column 1

@aaron-nimocks if i try below

curl -XPUT "http://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'{"transient":{"search.max_buckets":200000}}'
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}curl: (6) Could not resolve host: application

That seems to be a problem with curl on Windows (have heard about this being an issue before), as it is not the same as on Linux. I am not a Windows user so can unfortunately not recommend other tools.

Not sure, this is odd. What returns when you do the below?

curl -XGET "http://localhost:9200/_cluster/health"

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