Merge pull request #973 from jtyoung/scroll-id-body

Pass scroll and scroll_id in the request body instead of as query params in scan
This commit is contained in:
Camilla
2019-07-16 22:47:14 +02:00
committed by GitHub
+3 -2
View File
@@ -454,8 +454,9 @@ def scan(
"Scroll request has only succeeded on %d shards out of %d."
% (resp["_shards"]["successful"], resp["_shards"]["total"]),
)
scroll_kwargs.update({"scroll_id": scroll_id, "scroll": scroll})
resp = client.scroll(**scroll_kwargs)
resp = client.scroll(
body={"scroll_id": scroll_id, "scroll": scroll}, **scroll_kwargs
)
scroll_id = resp.get("_scroll_id")
finally: