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.
{ documents: [ { ok: 0, errmsg: 'text search not enabled' } ] ...}
but note thaterr
from the callback was stillnull
. Even if you have text search enabled you still might be getting another error. – Ironbark'comics'
in aforementioned example is supposed to be the collection. Also, when I run the command from mongo shell I do get results, andqueryDebugString
key equals"<keywords>||||||"
rather than"||||||"
which means that my keywords are not even passed. – Uraeus