I created an Index like below.
db.product.createIndex({“name”:“text”,“description”:“text”}
Then I want to perform the find operation in the created Index like this
db.product.find({$text: {$search: “Laptop”}}, {score: {$meta: “textScore”}}).sort({score:{$meta:“textScore”}})
I got some results also. But how should I modify the find query to get the field name/names(in my case name and description) also in the results where the find query search actually matched?