Skip to content

Commit

Permalink
Send scroll_id in body for clearScroll
Browse files Browse the repository at this point in the history
  • Loading branch information
SosthenG authored Apr 19, 2024
1 parent 28dfdaa commit 7f87a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function clear(): void
{
if (null !== $this->_nextScrollId) {
$this->_search->getClient()->clearScroll(
[Search::OPTION_SCROLL_ID => [$this->_nextScrollId]]
['body' => [Search::OPTION_SCROLL_ID => [$this->_nextScrollId]]]
);

// Reset scroll ID so valid() returns false.
Expand Down

0 comments on commit 7f87a17

Please sign in to comment.