Skip to content

Commit b62ee4d

Browse files
committed
Fixed filter format
1 parent 96ba319 commit b62ee4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Filter/FilterCollection.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function toArray() : array
4141
$array = [];
4242
/** @var \Spameri\ElasticQuery\Query\LeafQueryInterface $item */
4343
foreach ($this->mustCollection as $item) {
44-
$array['filter'][] = $item->toArray();
44+
$array['bool']['must'][] = $item->toArray();
4545
}
4646

4747
return $array;

0 commit comments

Comments
 (0)