From 296254867f4c5b9d9887cbdce5c86cccb7ef1f98 Mon Sep 17 00:00:00 2001 From: Martin <532171911@qq.com> Date: Wed, 22 Aug 2018 16:20:16 +0800 Subject: [PATCH] Update Query.php return highlight --- src/Query.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Query.php b/src/Query.php index 42cfa19..058a616 100755 --- a/src/Query.php +++ b/src/Query.php @@ -938,6 +938,9 @@ protected function getAll($result = []) $model->_type = $row["_type"]; $model->_id = $row["_id"]; $model->_score = $row["_score"]; + + // return highlight + isset($row['highlight']) && $model->_highlight = $row['highlight']; $new[] = $model; }