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

Commit

Permalink
set elastic index attribute prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlmLV committed Apr 23, 2019
1 parent a5e7400 commit 8d40af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ElasticEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function hydrateModels($model, $results)
$models = new Collection();

$hits->each(function ($item, $key) use ($className, $model, $models) {
$attributes = $item['_source'];
$attributes = Arr::get($item['_source'], $model->indexAttributesPrefix);
$models->put($item['_id'], new $className($attributes));
});
}
Expand Down

0 comments on commit 8d40af9

Please sign in to comment.