From 7f87a17057ad83d33bbae7fc0ed0816a48966d54 Mon Sep 17 00:00:00 2001 From: SosthenG Date: Fri, 19 Apr 2024 16:29:41 +0200 Subject: [PATCH] Send scroll_id in body for clearScroll --- src/Scroll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scroll.php b/src/Scroll.php index c19cde2dd..e8e6b3fd0 100644 --- a/src/Scroll.php +++ b/src/Scroll.php @@ -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.