Made Elasticsearch::Compat work with old API