blob: 1a92b5467644e9cee14054ba2ba1204bb43f6b1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Cannot implicitly shard accessed collections because of use of $near query instead of geoNear
// command.
// @tags: [assumes_unsharded_collection]
// See SERVER-7794.
t = db.geo_s2nopoints;
t.drop();
t.ensureIndex({loc: "2dsphere", x: 1});
assert.eq(
0,
t.count({loc: {$near: {$geometry: {type: 'Point', coordinates: [0, 0]}, $maxDistance: 10}}}));
|