Browse Source

Allow changing focus point from ENV var

This is just for easy testing
test-focus-point-weight
Julian Simioni 7 years ago
parent
commit
8bb27bc847
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      query/autocomplete_defaults.js

2
query/autocomplete_defaults.js

@ -31,7 +31,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'focus:offset': '0km',
'focus:scale': '250km',
'focus:decay': 0.5,
'focus:weight': 15,
'focus:weight': process.env.AUTOCOMPLETE_FOCUS_WEIGHT || 15,
'function_score:score_mode': 'avg',
'function_score:boost_mode': 'replace',

Loading…
Cancel
Save