Udated elasticsearch.go.