摘要: 自己的项目中用到了mongodb,需要做一个搜索功能,刚开始不知道怎么搞,查了mongodb有个全文检索功能。 全文检索分为两步 第一,建立索引 db.stores.createIndex( { name: "text", description: "text" } ) name,descripti 阅读全文
posted @ 2017-10-09 13:53 nokelong 阅读(1121) 评论(0) 推荐(0) 编辑