How to find the field name where the search has found

I created an Index like below.


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?

Did you find any solutions for this ?

No…! Not yet. Still searching for a solution.