-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Index Maintenance
-
None
-
Environment:db version v1.3.5-, pdfile version 4.5
git version: b14d45ae5575fbdc7042c4798a63bd77d50ec92e
I'm creating a 9x9 grid from [1,1]-[9,9], then I'm querying for the box [[4,4],[6,6]] and it's not finding the (5,5) point.
> db.geo.drop()
true
> db.geo.ensureIndex(
,
{"min" : 0, "max" : 10})
> for (i=1; i<10; i+) { for(j=1; j<10; j+) { db.geo.insert(
); } }
> db.geo.find({loc : {$within : {$box : [[4,4],[6,6]]}}})
> db.geo.find(
)
{ "_id" : ObjectId("4ba3912921c2dc6b59b9684f"), "loc" : [ 5, 5 ] }>