Upgrade from elasticsearch 1.4 to 2.x