You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To summary, there are 3 boosts, focus, popularity and population.
The max value for focus is 16 (when then wanted point is the same as the focus point).
For popularity and population, the max value is 20.
This means, even when the wanted point has is max score, it will not exceed boosts from popularity/population.
I suggest that, when focus.point is present, we may reduce the max boost of popularity and population, the new max_boost can be between 8 and 12 for example.
I will try to draft a PR next week.
Do you have any examples of a query using a focus where the popular city should still be displayed in first position?
The text was updated successfully, but these errors were encountered:
Yeah, this is a good analysis. The other component involved in the scoring is, of course, the text match score. This is pretty complicated and depends on the number of terms in the input query, how the parser parsed things, the number of alt-names a record has, etc.
It might be interesting to try to estimate a "maximum" score for various text lengths and, if needed, different parsing scenarios. Then we would know all the components going into the total score and could attempt to balance them more appropriately.
Funnily enough, right now we can have two problems that are almost opposites, at the same time:
nearby, exact text matches can score below a far away populated/popular place that is a poor text match
distant, exact text matches for popular places can score below a nearby place with a good text match
Use-cases
I tried to search the little city named
Vars, Hautes-Alpes, France
with a focus point, the request is/v1/autocomplete?lang=fr&focus.point.lat=48.03661925338169&focus.point.lon=6.580299229512&text=vars
(focus point in France)And the current result is
This specific use case may be solved by #1202 but I think we can improve focus point too.
Attempted Solutions
Here is the current boosting system:
To summary, there are 3 boosts, focus, popularity and population.
The max value for focus is 16 (when then wanted point is the same as the focus point).
For popularity and population, the max value is 20.
This means, even when the wanted point has is max score, it will not exceed boosts from popularity/population.
I suggest that, when focus.point is present, we may reduce the max boost of popularity and population, the new max_boost can be between 8 and 12 for example.
I will try to draft a PR next week.
Do you have any examples of a query using a focus where the popular city should still be displayed in first position?
The text was updated successfully, but these errors were encountered: