Pass scroll and scroll_id in the request body instead of as query params

This commit is contained in:
John Young
2019-06-20 11:26:46 -04:00
parent f0f3665e18
commit 916a744baf
+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: