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

Commit 8d40af9

Browse files
committed
set elastic index attribute prefix
1 parent a5e7400 commit 8d40af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElasticEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function hydrateModels($model, $results)
329329
$models = new Collection();
330330

331331
$hits->each(function ($item, $key) use ($className, $model, $models) {
332-
$attributes = $item['_source'];
332+
$attributes = Arr::get($item['_source'], $model->indexAttributesPrefix);
333333
$models->put($item['_id'], new $className($attributes));
334334
});
335335
}

0 commit comments

Comments
 (0)