There was an error while loading. Please reload this page.
1 parent f0f3665 commit 916a744Copy full SHA for 916a744
elasticsearch/helpers/actions.py
@@ -454,8 +454,9 @@ def scan(
454
"Scroll request has only succeeded on %d shards out of %d."
455
% (resp["_shards"]["successful"], resp["_shards"]["total"]),
456
)
457
- scroll_kwargs.update({"scroll_id": scroll_id, "scroll": scroll})
458
- resp = client.scroll(**scroll_kwargs)
+ resp = client.scroll(
+ body={"scroll_id": scroll_id, "scroll": scroll}, **scroll_kwargs
459
+ )
460
scroll_id = resp.get("_scroll_id")
461
462
finally:
0 commit comments