Incompatible index on upgrade to v3.0.0

You’ll need to do something like this:

#!/bin/bash

INDEX=$1


curl -k --cert ./admin.pem --key ./admin-key.pem -XPOST 'https://localhost:9200/_reindex?wait_for_completion=true' -H "Content-type:application/json" -d '{"source":{"index":"'${INDEX}'"}, "dest":{"index":"'${INDEX}'-re"}}'
curl -k --cert ./admin.pem --key ./admin-key.pem -XDELETE "https://localhost:9200/${INDEX}"
curl -k --cert ./admin.pem --key ./admin-key.pem -XPOST 'https://localhost:9200/_reindex?wait_for_completion=true' -H "Content-type:application/json" -d '{"source":{"index":"'${INDEX}'-re"}, "dest":{"index":"'${INDEX}'"}}'
2 Likes