From 916a744baf609be9f7e81c29381225e27287edeb Mon Sep 17 00:00:00 2001 From: John Young Date: Thu, 20 Jun 2019 11:26:46 -0400 Subject: [PATCH] Pass scroll and scroll_id in the request body instead of as query params --- elasticsearch/helpers/actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elasticsearch/helpers/actions.py b/elasticsearch/helpers/actions.py index 61469f538..a32fefdba 100644 --- a/elasticsearch/helpers/actions.py +++ b/elasticsearch/helpers/actions.py @@ -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: