👩💻 Join our community of thousands of amazing developers!
Project: codever - File: personal-bookmarks-search.service.js To perform a text search query on the text index of a collection, you need to use the $text operator. In the example below the results are sorted in order of relevance score, which you must explicitly project to the $meta textScore field and sort on it: let getPersonalBookmarksForSearchedTerms = async function (nonSpecialSearchTerms, page, limit, userId, specialSearchFilters, searchInclude) { let filter = {userId: userId}; i...