mongoose-query-parser icon indicating copy to clipboard operation
mongoose-query-parser copied to clipboard

support of mongo $text index search

Open vaggeliskls opened this issue 5 years ago • 0 comments

It would be a nice feature to enrich the mongoose query parser in order to support a search with the $text index of mongo. An example query: await Model.find( { $text : { $search : "text to look for" } }, { score : { $meta: "textScore" } } ) .sort({ score : { $meta : 'textScore' } }) Very nice work. Keep going. Thank you.

vaggeliskls avatar Nov 23 '19 19:11 vaggeliskls