Skip to content

Commit

Permalink
Update src/Engines/MeilisearchEngine.php
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Nov 16, 2023
1 parent 046442e commit fcd04cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Engines/MeilisearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public function map(Builder $builder, $results, $model)
$builder, $objectIds
)->map(function ($model) use ($results, $objectIdPositions) {
$result = $results['hits'][$objectIdPositions[$model->getScoutKey()]] ?? [];

foreach ($result as $key => $value) {
if (substr($key, 0, 1) === '_') {
$model->withScoutMetadata($key, $value);
Expand Down

0 comments on commit fcd04cc

Please sign in to comment.