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
When trying out photon I stumbled across inconsistencies with the returned items when the language header is missing or the language is set to default.
An example of this behaviour can be observed with these two queries:
There seems to be a difference between lang=default and lang={de,fr,en}, where the latter all return the expected top item.
Specifically the top hit of the german language result is missing from the default language (OSM ID: 3760787919).
See the attached diff. Green lines are additional items only present when a language is set.
The problem is that the local name (aka 'default') is currently indexed in a different way than the language specific indexes. That sometimes leads to these kind of odd results. Can only be fixed by changing the database schema. It's planned but it is a larger undertaking.
When trying out photon I stumbled across inconsistencies with the returned items when the language header is missing or the language is set to default.
An example of this behaviour can be observed with these two queries:
https://photon.komoot.io/api/?q=rewe%20worms&lat=8.32932446362749&lon=49.61427555&lang=de
https://photon.komoot.io/api/?q=rewe%20worms&lat=8.32932446362749&lon=49.61427555&lang=default
There seems to be a difference between
lang=default
andlang={de,fr,en}
, where the latter all return the expected top item.Specifically the top hit of the german language result is missing from the default language (OSM ID: 3760787919).
See the attached diff. Green lines are additional items only present when a language is set.
The text was updated successfully, but these errors were encountered: