my cluster is with yellow status because some shards are unassigned. what to do with this?
I tried set cluster.routing.allocation.disable_allocation = false
cluster.routing.allocation.disable_allocation = false
The only thing that worked for me was changing the number_of_replicas (I had 2 replicas, so I changed it to 1 and then changed back to 2).
First:
PUT /myindex/_settings { "index" : { "number_of_replicas" : 1 } }
Then:
PUT /myindex/_settings { "index" : { "number_of_replicas" : 2 } }