We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0f3665 + 916a744 commit a37a9f3Copy full SHA for a37a9f3
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