Elasticsearch utilities.