等效的MongoDB:
SELECT (text_matches of "pies") FROM table WHERE (published = "true")
db.find({ $text: { $search: searchTerm } }, {published: "true"})
我无法确定参数{published: "true"}
在查询中的位置,也无法在docs上找到任何示例
答案 0 :(得分:-1)
db.find({ published: "true", $text: { $search: searchTerm }})