anishek moving creation of elastic search indexes before creating the couchdb