Use GET in scroll to enable method-based access control

This commit is contained in:
Armagnac
2014-06-25 11:30:56 +02:00
committed by Honza Král
parent 4d37a54c95
commit 619e7eb6b2
+1 -1
View File
@@ -552,7 +552,7 @@ class Elasticsearch(object):
:arg scroll: Specify how long a consistent view of the index should be
maintained for scrolled search
"""
_, data = self.transport.perform_request('POST', _make_path('_search', 'scroll'),
_, data = self.transport.perform_request('GET', '/_search/scroll',
params=params, body=scroll_id)
return data