| Steps To Reproduce: |
2.5.5-pre-
> db.c.find({loc:{$nearSphere:{$geometry:{type:"Point", coordinates:[20,20]}},$maxDistance:10e100000}})
|
error: {
|
"$err" : "can't parse query (2dsphere): { $nearSphere: { $geometry: { type: \"Point\", coordinates: [ 20.0, 20.0 ] } }, $maxDistance: inf.0 }",
|
"code" : 16535
|
}
|
> db.c.find({loc:{$near:{$geometry:{type:"Point", coordinates:[20,20]}},$maxDistance:10e100000}})
|
error: {
|
"$err" : "can't parse query (2dsphere): { $near: { $geometry: { type: \"Point\", coordinates: [ 20.0, 20.0 ] } }, $maxDistance: inf.0 }",
|
"code" : 16535
|
}
|
> db.c.find({loc:{$nearSphere:{$geometry:{type:"Point", coordinates:[20,20]},$maxDistance:10e100000}}})
|
{ "_id" : ObjectId("528fa99e6ce2fec2710a135a"), "loc" : { "type" : "Point", "coordinates" : [ 0, 0 ] } }
|
{ "_id" : ObjectId("528fa9b06ce2fec2710a135b"), "loc" : { "type" : "Point", "coordinates" : [ -1, 0 ] } }
|
> db.c.find({loc:{$near:{$geometry:{type:"Point", coordinates:[20,20]},$maxDistance:10e100000}}})
|
{ "_id" : ObjectId("528fa99e6ce2fec2710a135a"), "loc" : { "type" : "Point", "coordinates" : [ 0, 0 ] } }
|
{ "_id" : ObjectId("528fa9b06ce2fec2710a135b"), "loc" : { "type" : "Point", "coordinates" : [ -1, 0 ] } }
|
2.4.9-pre-
> db.c.find({loc:{$nearSphere:{$geometry:{type:"Point", coordinates:[20,20]}},$maxDistance:10e100000}})
|
{ "_id" : ObjectId("528fa99e5142cd7d1e23d1ba"), "loc" : { "type" : "Point", "coordinates" : [ 0, 0 ] } }
|
{ "_id" : ObjectId("528fa9b05142cd7d1e23d1bb"), "loc" : { "type" : "Point", "coordinates" : [ -1, 0 ] } }
|
> db.c.find({loc:{$near:{$geometry:{type:"Point", coordinates:[20,20]}},$maxDistance:10e100000}})
|
{ "_id" : ObjectId("528fa99e5142cd7d1e23d1ba"), "loc" : { "type" : "Point", "coordinates" : [ 0, 0 ] } }
|
{ "_id" : ObjectId("528fa9b05142cd7d1e23d1bb"), "loc" : { "type" : "Point", "coordinates" : [ -1, 0 ] } }
|
> db.c.find({loc:{$nearSphere:{$geometry:{type:"Point", coordinates:[20,20]},$maxDistance:10e100000}}})
|
{ "_id" : ObjectId("528fa99e5142cd7d1e23d1ba"), "loc" : { "type" : "Point", "coordinates" : [ 0, 0 ] } }
|
{ "_id" : ObjectId("528fa9b05142cd7d1e23d1bb"), "loc" : { "type" : "Point", "coordinates" : [ -1, 0 ] } }
|
> db.c.find({loc:{$near:{$geometry:{type:"Point", coordinates:[20,20]},$maxDistance:10e100000}}})
|
{ "_id" : ObjectId("528fa99e5142cd7d1e23d1ba"), "loc" : { "type" : "Point", "coordinates" : [ 0, 0 ] } }
|
{ "_id" : ObjectId("528fa9b05142cd7d1e23d1bb"), "loc" : { "type" : "Point", "coordinates" : [ -1, 0 ] } }
|
|