How to both search text then sort the results by another field in MongoDB efficiently?

后端 未结 0 1143
孤独总比滥情好
孤独总比滥情好 2021-02-11 20:38

So let\'s say I have the collection posts in the format:

_id
user
title
body
tags
likes
shares
date

I have a text index on tit

相关标签:
回答
  • 消灭零回复
提交回复
热议问题