From 77e6fe8aad03908e54201e303b2dcee8a9f09b9f Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Wed, 15 Jul 2015 19:37:57 -0400 Subject: [PATCH] fix broken test --- test/unit/query/search.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/unit/query/search.js b/test/unit/query/search.js index d4224dde..5de06f8f 100644 --- a/test/unit/query/search.js +++ b/test/unit/query/search.js @@ -220,7 +220,17 @@ module.exports.tests.query = function(test, common) { } } }, - 'sort': ['_score'].concat(sort.slice(1)), + 'sort': ['_score', + { + '_geo_distance': { + 'center_point': { + 'lat': 29.49136, + 'lon': -82.50622 + }, + 'order': 'asc', + 'unit': 'km' + } + }].concat(sort.slice(1)), 'size': 10, 'track_scores': true };