We use MongoDB text search, which still works great. However, we also want to indicate the order of the results, for example:
db.items.runCommand("text", {search: "\"test item\"", "$orderby" : { votes : 1 }});
This is done, but it is not sorted by vote, it is still sorted by result.
Does anyone know how to do this?
Thanks!
source share