Wraps parts of the Elasticsearch API