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

后端 未结 0 1262
Happy的楠姐
Happy的楠姐 2021-02-11 20:08

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

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