[SERVER-12230] text command results stats field is missing nfound Created: 31/Dec/13  Updated: 13/Jan/14  Resolved: 13/Jan/14

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: 2.5.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sridhar Nanjundeswaran Assignee: J Rassi
Resolution: Won't Fix Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

12/30 build on windows 7 x64


Operating System: ALL
Participants:

 Description   

db.runCommand(

{"text":"testcollection","search":"fox"}

)

2.4.8/2.5.4
"stats" : {
"nscanned" : 1,
"nscannedObjects" : 0,
"n" : 1,
"nfound" : 1,
"timeMicros" : 697
},

2.5.5
"stats" : {
"nscanned" : NumberLong(1),
"nscannedObjects" : NumberLong(1),
"n" : 1,
"timeMicros" : 733
},

This is breaking .net driver unittests



 Comments   
Comment by Daniel Pasette (Inactive) [ 13/Jan/14 ]

in 2.6+ you should be using find() syntax and you can get this info from .explain()

Generated at Thu Feb 08 03:27:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.