Allow the option to mention the number of search results needed
I would like to get only the top scored 1000 or 2000 records while doing the search. Currently this is 2 step process : $search and then use the $limit stage.
5
votes
Supriya
shared this idea
-
Christian Dennis commented
This is especially important because with the separate $search and $limit stages, all the results from the $search stage are loaded to memory and potentially triggering unnecessary getMore commands when there are more results than the $limit stage