No settings to update


(Neal Shan) #1

Hi Guys, I was using Elasticsearch 2.3.5, and trying to update settings but I got this.
Reference link: https://www.elastic.co/guide/en/elasticsearch/reference/1.4/indices-update-settings.html#update-settings-analysis

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}

My Code:
curl -s -XPUT localhost:9200/dev/_close
curl -s -XPUT localhost:9200/dev/_settings -d@${dirname "$0"}/index_settings.json
curl -s -XPUT localhost:9200/dev/_open

index_settings.json
{
"analysis" : {
"tokenizer" : {
"comma" : {
"type" : "pattern",
"pattern" : ","
}
},
"analyzer" : {
"comma" : {
"type" : "custom",
"tokenizer" : "comma"
}
}
}

}


(Mark Walkom) #2

You are linking to 1.4 documentation there, take a look at https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-update-settings.html#update-settings-analysis.


(system) #3

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