Browse Source

Merge pull request #729 from pelias/adjust_autocomplete_focus_boost

Adjust autocomplete focus boost
pull/776/head
Julian Simioni 8 years ago committed by GitHub
parent
commit
60d52b1985
  1. 2
      query/autocomplete_defaults.js
  2. 2
      test/unit/fixture/autocomplete_linguistic_focus.js
  3. 2
      test/unit/fixture/autocomplete_linguistic_focus_null_island.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': 40,
'focus:weight': 15,
'function_score:score_mode': 'avg',
'function_score:boost_mode': 'replace',

2
test/unit/fixture/autocomplete_linguistic_focus.js

@ -44,7 +44,7 @@ module.exports = {
'decay': 0.5
}
},
'weight': 40
'weight': 15
}],
'score_mode': 'avg',
'boost_mode': 'replace',

2
test/unit/fixture/autocomplete_linguistic_focus_null_island.js

@ -44,7 +44,7 @@ module.exports = {
'decay': 0.5
}
},
'weight': 40
'weight': 15
}],
'score_mode': 'avg',
'boost_mode': 'replace',

Loading…
Cancel
Save