This is evident from performing the query directly on an empty collection that does not contain any documents.
db.c.find({xid: ObjectId("5475cdeeb307f5e9b8550eaa"), pos: { $nearSphere: [ 0, 0 ], $maxDistance: 1}}).explain()
{ "cursor" : "S2NearCursor", "isMultiKey" : false, "n" : 0, "nscannedObjects" : 26, "nscanned" : 26, "nscannedObjectsAllPlans" : 26, "nscannedAllPlans" : 26, "scanAndOrder" : false, "indexOnly" : false, "nYields" : 0, "nChunkSkips" : 0, "millis" : 8, "indexBounds" : { }, "server" : "aks-osx.local:37018", "filterSet" : false }
This issue is not seen in 2.8.
- duplicates
-
SERVER-16527 2dsphere explain reports "works" for nscanned & nscannedObjects
- Closed