Updated to match Elasticsearch API v1