等效于Node.js中的mongo shell db.collection.runCommand() [英] Equivalent to mongo shell db.collection.runCommand() in Node.js

查看:95
本文介绍了等效于Node.js中的mongo shell db.collection.runCommand()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆