Skip to content

Commit 0830c40

Browse files
committed
Refactor scroll query parameter construction
There has been a change in how query parameters are constructed for the Elasticsearch scroll API. We now directly pass the scrollId under the PARAM_BODY key, fixing a bug where Elasticsearch would abort the query due to an URL too long. Fixes #320.
1 parent 6b505ac commit 0830c40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Concerns/ExecutesQueries.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,9 @@ public function performSearch(string|null $scrollId = null): array|null
414414
->getClient()
415415
->scroll([
416416
Query::PARAM_SCROLL => $this->getScroll(),
417-
Query::PARAM_SCROLL_ID => $scrollId,
417+
Query::PARAM_BODY => [
418+
Query::PARAM_SCROLL_ID => $scrollId
419+
],
418420
]);
419421
} else {
420422
$query = $this->buildQuery();

0 commit comments

Comments
 (0)