Skip to content

Commit f929df2

Browse files
committed
Merge remote-tracking branch 'pr/267'
2 parents 64dde0c + 3e4e6ba commit f929df2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ Xiuming Chen <cc@cxm.cc>
4747
David Szotten <davidszotten@gmail.com>
4848
Jorgen Jorgensen <jayjaypy@barskdata.net>
4949
Jason Veatch <jtveatch@gmail.com>
50+
Daniel <dmg.lab@outlook.com>

elasticsearch/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def count(self, index=None, doc_type=None, body=None, params=None):
743743
if doc_type and not index:
744744
index = '_all'
745745

746-
_, data = self.transport.perform_request('POST', _make_path(index,
746+
_, data = self.transport.perform_request('GET', _make_path(index,
747747
doc_type, '_count'), params=params, body=body)
748748
return data
749749

0 commit comments

Comments
 (0)