blob: 7b3a3b970a76f6beed7ec9dbe5b96a31f3b6e39f (
plain)
1
2
3
4
5
6
7
8
|
// See SERVER-7794.
t = db.geo_s2nopoints;
t.drop();
t.createIndex({loc: "2dsphere", x: 1});
assert.eq(
0,
t.count({loc: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 10}}}));
|