Skip to content

Commit

Permalink
Adjust autocomplete focus boost
Browse files Browse the repository at this point in the history
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 :(
  • Loading branch information
orangejulius committed Jan 4, 2017
1 parent df683c8 commit abb4fa6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion query/autocomplete_defaults.js
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/autocomplete_linguistic_focus.js
Expand Up @@ -44,7 +44,7 @@ module.exports = {
'decay': 0.5
}
},
'weight': 40
'weight': 15
}],
'score_mode': 'avg',
'boost_mode': 'replace',
Expand Down
Expand Up @@ -44,7 +44,7 @@ module.exports = {
'decay': 0.5
}
},
'weight': 40
'weight': 15
}],
'score_mode': 'avg',
'boost_mode': 'replace',
Expand Down

0 comments on commit abb4fa6

Please sign in to comment.