Browse Source

focus minimum set to 0km instead of 1km

pull/567/head
missinglink 9 years ago
parent
commit
cb35f37312
  1. 2
      query/reverse_defaults.js
  2. 2
      query/search_defaults.js
  3. 2
      test/unit/fixture/search_linguistic_focus.js
  4. 2
      test/unit/fixture/search_linguistic_focus_bbox.js
  5. 2
      test/unit/fixture/search_linguistic_focus_null_island.js
  6. 2
      test/unit/fixture/search_linguistic_viewport.js

2
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,

2
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,

2
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
}

2
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
}

2
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
}

2
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
}

Loading…
Cancel
Save