Open ghost opened 7 years ago
Never mind, I switched to mongorito@v3 and saw the .search() API. Now the question is: what would be the best approach to count all matched records using full text search for pagination?
I haven't tried it, but there is a count function in the code, have you tried it?
I'm trying to do a full text search and sort the results by score, but when I run the query I get
Must have $meta projection for all $meta sort keys
This is what I have so far
Am I doing something wrong?