curl -XPOST 'localhost:9200/_cluster/reroute?pretty' -H 'Content-Type: application/json' -d'
{
"commands" : [
{"allocate_stale_primary" : {
"index" : "fragment", "shard" : 7,
"node" : "node-104-0",
"accept_data_loss" : true
}
},{"allocate_stale_primary" : {
"index" : "fragment", "shard" : 6,
"node" : "node-104-1",
"accept_data_loss" : true
}
}
]
}
{
"commands" : [
{"allocate_stale_primary" : {
"index" : "fragment", "shard" : 7,
"node" : "node-104-0",
"accept_data_loss" : true
}
},{"allocate_stale_primary" : {
"index" : "fragment", "shard" : 6,
"node" : "node-104-1",
"accept_data_loss" : true
}
}
]
}
'
https://discuss.elastic.co/t/cluster-state-red-after-opening-a-closed-index/121619