diff --git a/AUTHORS b/AUTHORS index e0024591..934cea2a 100644 --- a/AUTHORS +++ b/AUTHORS @@ -47,3 +47,4 @@ Xiuming Chen David Szotten Jorgen Jorgensen Jason Veatch +Daniel diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index 175037b4..4b40f4c6 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -743,7 +743,7 @@ class Elasticsearch(object): if doc_type and not index: index = '_all' - _, data = self.transport.perform_request('POST', _make_path(index, + _, data = self.transport.perform_request('GET', _make_path(index, doc_type, '_count'), params=params, body=body) return data