Skip to content

Commit 47a8e9b

Browse files
authored
Move scroll_id into body in documentation (#1052)
1 parent 6aab95f commit 47a8e9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/search-operations.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ while (isset($response['hits']['hits']) && count($response['hits']['hits']) > 0)
283283
284284
// Execute a Scroll request and repeat
285285
$response = $client->scroll([
286+
'body' => [
286287
'scroll_id' => $scroll_id, //...using our previously obtained _scroll_id
287288
'scroll' => '30s' // and the same timeout window
288289
]
289-
);
290+
]);
290291
}
291292
----

0 commit comments

Comments
 (0)