{“_index”:”cluster”,”_type”:”settings”,”_id”:”〇〇〇〇〇〇”,”_version”:1,”result” : “created”,”shards”:{“total” :2, “successful” :2,”failed” :0, “seq_no” :1, “_primary_term”:7 }  } みたいなメッセージが表示された。

elasticsearchのシャードの再配置を無効にしようとして、間違えて下記のコマンドを入力したところ(postになっているし、clusterに_がついていない)
 
Curl –H ‘Content-Type: application/json’ –XPOST  ‘http://localhost:9200/cluster/settings –d ‘{
  “persistent”: {
    “cluster.routing.allocation.enable” : “none”
  }
}’
 
 
{“_index”:”cluster”,”_type”:”settings”,”_id”:”〇〇〇〇〇〇”,”_version”:1,”result” : “created”,”shards”:{“total” :2, “successful” :2,”failed” :0, “seq_no” :1, “_primary_term”:7 }  }
みたいなメッセージが表示された。これが何を意味するのか。もはやエラーメッセージかどうかすらわからなかった。"successful"とあるので成功しているのかと思いきや。
 
↓の記事を見るとこれもエラーメッセージらしい。
 
 
以下のコマンドで設定を確認したところ、再配置の無効はできていないみたい。
 
ちゃんと以下のコマンドで実行したらうまく設定された。
 
Curl –H ‘Content-Type: application/json’ –XPUT  ‘http://localhost:9200/_cluster/settings –d ‘{
  “persistent”: {
    “cluster.routing.allocation.enable” : “none”
  }
}’
 
成功したら以下のメッセージが表示された。
{"acknowledged":true,"persistent":{"cluster":{"routing":{"allocation":"none"}}}}