From cb35f373127bb3680f9c97b8fe8a276ee5503552 Mon Sep 17 00:00:00 2001 From: missinglink Date: Wed, 22 Jun 2016 19:01:30 +0200 Subject: [PATCH] focus minimum set to 0km instead of 1km --- query/reverse_defaults.js | 2 +- query/search_defaults.js | 2 +- test/unit/fixture/search_linguistic_focus.js | 2 +- test/unit/fixture/search_linguistic_focus_bbox.js | 2 +- test/unit/fixture/search_linguistic_focus_null_island.js | 2 +- test/unit/fixture/search_linguistic_viewport.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/query/reverse_defaults.js b/query/reverse_defaults.js index 8392183f..d21caa9b 100644 --- a/query/reverse_defaults.js +++ b/query/reverse_defaults.js @@ -31,7 +31,7 @@ module.exports = _.merge({}, peliasQuery.defaults, { 'phrase:slop': 2, 'focus:function': 'linear', - 'focus:offset': '1km', + 'focus:offset': '0km', 'focus:scale': '50km', 'focus:decay': 0.5, 'focus:weight': 2, diff --git a/query/search_defaults.js b/query/search_defaults.js index 0ffdd79f..e2b18633 100644 --- a/query/search_defaults.js +++ b/query/search_defaults.js @@ -30,7 +30,7 @@ module.exports = _.merge({}, peliasQuery.defaults, { 'phrase:slop': 2, 'focus:function': 'linear', - 'focus:offset': '1km', + 'focus:offset': '0km', 'focus:scale': '50km', 'focus:decay': 0.5, 'focus:weight': 2, diff --git a/test/unit/fixture/search_linguistic_focus.js b/test/unit/fixture/search_linguistic_focus.js index da3e8fb3..8d3684b8 100644 --- a/test/unit/fixture/search_linguistic_focus.js +++ b/test/unit/fixture/search_linguistic_focus.js @@ -43,7 +43,7 @@ module.exports = { 'lat': 29.49136, 'lon': -82.50622 }, - 'offset': '1km', + 'offset': '0km', 'scale': '50km', 'decay': 0.5 } diff --git a/test/unit/fixture/search_linguistic_focus_bbox.js b/test/unit/fixture/search_linguistic_focus_bbox.js index d5042c0f..0531fc9a 100644 --- a/test/unit/fixture/search_linguistic_focus_bbox.js +++ b/test/unit/fixture/search_linguistic_focus_bbox.js @@ -43,7 +43,7 @@ module.exports = { 'lat': 29.49136, 'lon': -82.50622 }, - 'offset': '1km', + 'offset': '0km', 'scale': '50km', 'decay': 0.5 } diff --git a/test/unit/fixture/search_linguistic_focus_null_island.js b/test/unit/fixture/search_linguistic_focus_null_island.js index b99febea..10c2d91c 100644 --- a/test/unit/fixture/search_linguistic_focus_null_island.js +++ b/test/unit/fixture/search_linguistic_focus_null_island.js @@ -43,7 +43,7 @@ module.exports = { 'lat': 0, 'lon': 0 }, - 'offset': '1km', + 'offset': '0km', 'scale': '50km', 'decay': 0.5 } diff --git a/test/unit/fixture/search_linguistic_viewport.js b/test/unit/fixture/search_linguistic_viewport.js index b85d8322..5e1b2ba3 100644 --- a/test/unit/fixture/search_linguistic_viewport.js +++ b/test/unit/fixture/search_linguistic_viewport.js @@ -48,7 +48,7 @@ module.exports = { 'lat': 29.49136, 'lon': -82.50622 }, - 'offset': '1km', + 'offset': '0km', 'scale': '50km', 'decay': 0.5 }