How to using $text $search score yii2 mongodb

Mongodb version 3.0 - php driver 1.6 yii2-mongodb 2.0.4

construc : mydb.articles

{

_id,

title,

body

}

created index :

{

title:"text",

body: "text"

}

find with mongochef

db.articles.find(($text: { $search: "Home Internet"}},{score: { $meta: "textScore" } }).sort({score: { $meta: "textScore" }})

return results ok

How to work with yii2?

ActiveRecord (frontend\models\Articles)

me too having the same problem did you find the solution