使用Meteor.js和MongoDB进行全文搜索 [英] Full-text search with Meteor.js and MongoDB
问题描述
我正在尝试使用Meteor.js,并寻找可以在Meteor/MongoDB服务器上运行的全文本搜索引擎.看来Meteor尚未开发此功能.
I am experimenting with Meteor.js and looking for a full-text search engine that can run on Meteor/MongoDB server. It seems that Meteor has not developed this feature.
我想知道是否存在用于向Meteor应用添加全文搜索的现有解决方案.
I wonder if there is an existing solution for adding full-text search to Meteor app.
我唯一能找到的是 MongoLantern ,它具有node.js API.我应该如何将MongoLantern添加到我的Meteor应用程序中?
The only thing I can find is MongoLantern, which has node.js API. How should I go about adding MongoLantern to my Meteor app?
推荐答案
MongoDB 2.4将在其中进行全文搜索. 指南可以在这里找到.
MongoDB 2.4 will have a full text search in it. Guide can be found here.
如果您准备运行开发版本,则可以立即下载 MongoDB 2.3 -它包含文本搜索
If you are prepared to run the development releases you can download MongoDB 2.3 now - it contains text search.
更新:MongoDB 2.4已发布.文字搜索被称为Beta.
Update: MongoDB 2.4 has been released. Text search is described as Beta.
The guide for text search is here and the mongod
must be run like this
mongod --setParameter textSearchEnabled=true
这篇关于使用Meteor.js和MongoDB进行全文搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!