|
I am using mongodb 2.4.8.
> db.thread_data.runCommand("text", {search : "all"});
{
"queryDebugString" : "||||||",
"language" : "english",
"results" : [ ],
"stats" :
{
"nscanned" : 0,
"nscannedObjects" : 0,
"n" : 0,
"nfound" : 0,
"timeMicros" : 64
}
,
"ok" : 1
}
-> thread_data is a collection, which is text indexed.
-> {search : "all"} here we are searching all the documents of thread_data where "all" word is present
-> In thread_data collection "all" word is present in the document but it is not present in the results.
-> From the documentation the search word will be in the "queryDebugString" of the output. but it is not happening.
|