【发布时间】:2019-05-15 04:11:24
【问题描述】:
目标
与此等效的 MongoDB:SELECT (text_matches of "pies") FROM table WHERE (published = "true")
我正在尝试什么
db.find({ $text: { $search: searchTerm } }, {published: "true"})
我无法确定 {published: "true"} 参数在查询中的位置,我在 docs 上找不到任何示例
【问题讨论】:
标签: mongodb text-search