Skip to content

Commit

Permalink
fix(autocomplete focus.point): Use 50km scale parameter
Browse files Browse the repository at this point in the history
The `scale` parameter controls how quickly scores decrease from the
maximum as the distance from the `center_point` to the record in
question increases.

Set this to 50km, which is the same as search.

Connects #1206
  • Loading branch information
orangejulius committed Nov 7, 2018
1 parent 128a6d9 commit 83a50b8
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {

'focus:function': 'exp',
'focus:offset': '0km',
'focus:scale': '250km',
'focus:scale': '50km',
'focus:decay': 0.5,
'focus:weight': 15,

Expand Down
2 changes: 1 addition & 1 deletion test/unit/fixture/autocomplete_linguistic_focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
'lon': -82.50622
},
'offset': '0km',
'scale': '250km',
'scale': '50km',
'decay': 0.5
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
'lon': 0
},
'offset': '0km',
'scale': '250km',
'scale': '50km',
'decay': 0.5
}
},
Expand Down

0 comments on commit 83a50b8

Please sign in to comment.