diff --git a/src/Connection.php b/src/Connection.php index 5ef0cdd..18b12e8 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -310,7 +310,9 @@ public function scroll(string $scrollId, string $scrollTimeout = '30s', int $lim while (!$limit || $numResults < $limit) { // Execute a Scroll request $results = $this->connection->scroll([ - 'scroll_id' => $scrollId, + 'body' => [ + 'scroll_id' => $scrollId, + ], 'scroll' => $scrollTimeout, ]);