-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.5.0
-
Component/s: Text Search
-
None
-
ALL
db.collection.insert({words: "test"}) db.collection.ensureIndex({ words: 'text'}) db.collection.runCommand('text', {search: "test"}) { "queryDebugString": "test||||||", "language": "english", "results": [ { "score": 1.1, "obj": { "_id": ObjectId("51a50462a2414ab2f8ebcfae"), "words": "test" } } ], "stats": { "nscanned": 1, "nscannedObjects": 0, "n": 1, "nfound": 1, "timeMicros": 75 }, "ok": 1 }
nscannedObjects can't possibly be 0 as we don't have _id in the index