等效于Node.js中的mongo shell db.collection.runCommand() [英] Equivalent to mongo shell db.collection.runCommand() in Node.js
问题描述
我想使用MongoDB 2.4中提供的全文搜索.
文本搜索可通过runCommand函数进行,例如db.collection.runCommand( "text", { search: "keywords"})
.因此,我想知道mongojs或node-mongodb-native模块中是否有与runCommand()函数等效的函数.
I'd like to use full text search available in MongoDB 2.4.
Text search is available through runCommand function e.g. db.collection.runCommand( "text", { search: "keywords"})
. So, I'm wondering whether there is an equivalent to runCommand() function in mongojs or node-mongodb-native modules.
我知道这个问题以前曾被提及过,但从未得到足够的回答. 预先感谢.
I know the question has been touched before but was never answered sufficiently. Thanks in advance.
推荐答案
runCommand支持已添加! https://github.com/gett/mongojs/issues/62
runCommand support has been added! https://github.com/gett/mongojs/issues/62
这篇关于等效于Node.js中的mongo shell db.collection.runCommand()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!