Skip to content

Commit a37a9f3

Browse files
author
Camilla
authored
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
2 parents f0f3665 + 916a744 commit a37a9f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

elasticsearch/helpers/actions.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ def scan(
454454
"Scroll request has only succeeded on %d shards out of %d."
455455
% (resp["_shards"]["successful"], resp["_shards"]["total"]),
456456
)
457-
scroll_kwargs.update({"scroll_id": scroll_id, "scroll": scroll})
458-
resp = client.scroll(**scroll_kwargs)
457+
resp = client.scroll(
458+
body={"scroll_id": scroll_id, "scroll": scroll}, **scroll_kwargs
459+
)
459460
scroll_id = resp.get("_scroll_id")
460461

461462
finally:

0 commit comments

Comments
 (0)