I am trying to use the following query in MongoDB.
1) db.products.createIndex({ name: "text",category.name':"text"})
this will create a Index.
2) Now my query is
db.products.find({$text:{$search:"Sun moon Tapestry"}})
this will bring data according to Sun,moon, and Tapestry.
3) but i want to get data like this.
a) first all data row in exect match
Sun moon Tapestry
b) then after that Sun,moon and Tapestry will show up
(NOTE: DB call should be one time)