Added set_elasticsearch_host function