use GET method for count

as documented in the Elasticsearch API reference
This commit is contained in:
Daniel
2015-09-10 15:54:56 +02:00
parent edbf7ec545
commit 3e4e6ba430
+1 -1
View File
@@ -741,7 +741,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