Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit c852f0a

Browse files
authored
Merge pull request #1 from dukefsc/match_all_query_fix_patch
Fix match_all query to be compliant with ER 5.4
2 parents 4a9c4e9 + d46f2eb commit c852f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ElasticEngine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ protected function performSearch(Builder $builder, array $options = []) {
262262
} else {
263263
$payload = $this->buildSearchQueryPayload(
264264
$builder,
265-
['must' => ['match_all' => []]],
265+
['must' => ['match_all' => new \stdClass()]],
266266
$options
267267
);
268268

@@ -323,4 +323,4 @@ public function getTotalCount($results)
323323
{
324324
return $results['hits']['total'];
325325
}
326-
}
326+
}

0 commit comments

Comments
 (0)