Update to ElasticSearch initialization routine.