Browse Source

Adjust autocomplete focus boost

This lowers the autocomplete focus boost from 40 to 15. The idea is
that, because the boost for population is 20, the focus can't possibly
override a popular city, but it can come close.

On our default dev build, no acceptance tests fail but the san francisco
autocomplete test now passes!

It's not clear if this fixes WOF venue issues yet, since the latest
build there failed :(
pull/729/head
Julian Simioni 8 years ago committed by Julian Simioni
parent
commit
abb4fa6113
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  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