I am trying to use MongoDB 2.4's experimental text search function from inside nodejs. The only problem is that the native nodejs mongo drivers do not seem to support the collection level runCommand command, as far as I can tell.
The Mongo command line syntax is as follows:
db.collection.runCommand( "text", { search : "Textvalue" } );
There is a function db.command / db.executeDbCommand, but I do not know how to select a collection and run it using it (if possible), since it should be in the collection of the level, not the level of db.
Any help would be appreciated
source
share