summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2descindex.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2descindex.js')
-rw-r--r--jstests/core/geo_s2descindex.js16
1 files changed, 3 insertions, 13 deletions
diff --git a/jstests/core/geo_s2descindex.js b/jstests/core/geo_s2descindex.js
index d6dca95213d..daf5531b31d 100644
--- a/jstests/core/geo_s2descindex.js
+++ b/jstests/core/geo_s2descindex.js
@@ -5,24 +5,14 @@
var coll = db.getCollection("twodspheredesc");
var descriptors = [["field1", -1], ["field2", -1], ["coordinates", "2dsphere"]];
-var docA = {
- field1: "a",
- field2: 1,
- coordinates: [-118.2400013, 34.073893]
-};
-var docB = {
- field1: "b",
- field2: 1,
- coordinates: [-118.2400012, 34.073894]
-};
+var docA = {field1: "a", field2: 1, coordinates: [-118.2400013, 34.073893]};
+var docB = {field1: "b", field2: 1, coordinates: [-118.2400012, 34.073894]};
// Try both regular and near index cursors
var query = {
coordinates: {$geoWithin: {$centerSphere: [[-118.240013, 34.073893], 0.44915760491198753]}}
};
-var queryNear = {
- coordinates: {$geoNear: {"type": "Point", "coordinates": [0, 0]}}
-};
+var queryNear = {coordinates: {$geoNear: {"type": "Point", "coordinates": [0, 0]}}};
//
// The idea here is we try "2dsphere" indexes in combination with descending