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"
}
}
}
}