Skip to content

Commit 0858418

Browse files
committed
increase default scroll value
1 parent 45112cb commit 0858418

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ElasticEngine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public function searchRaw(Model $model, $query)
289289
* @return mixed
290290
* @throws \Exception
291291
*/
292-
public function searchRawWithScroll(Model $model, $query, $size = 10000, string $scroll = '10s')
292+
public function searchRawWithScroll(Model $model, $query, $size = 10000, string $scroll = '1m')
293293
{
294294
$payload = (new TypePayload($model))
295295
->setIfNotEmpty('body', $query)
@@ -308,7 +308,7 @@ public function searchRawWithScroll(Model $model, $query, $size = 10000, string
308308
* @param $scroll
309309
* @return mixed
310310
*/
311-
public function scroll(string $scroll_id, string $scroll = '10s')
311+
public function scroll(string $scroll_id, string $scroll = '1m')
312312
{
313313
return ElasticClient::scroll([
314314
'scroll' => $scroll,

src/Searchable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static function searchRaw(array $query)
145145
* @param $scroll
146146
* @return array
147147
*/
148-
public static function searchRawWithScroll(array $query, int $size = 10000, string $scroll = '10s')
148+
public static function searchRawWithScroll(array $query, int $size = 10000, string $scroll = '1m')
149149
{
150150
$model = new static();
151151

@@ -160,7 +160,7 @@ public static function searchRawWithScroll(array $query, int $size = 10000, stri
160160
* @param $scroll
161161
* @return array
162162
*/
163-
public static function scroll(string $scroll_id, string $scroll = '10s')
163+
public static function scroll(string $scroll_id, string $scroll = '1m')
164164
{
165165
$model = new static();
166166

0 commit comments

Comments
 (0)