After Elasticsearch is updated to a newer version, a migration API is implemented. The X-Pack indices are updated into the most recent/newer version of the Elasticsearch cluster using this migration API.