Skip to content

Scale down importance according to search rank of the object - #1096

Merged
lonvia merged 1 commit into
komoot:masterfrom
lonvia:degrade-importance
Jul 7, 2026
Merged

Scale down importance according to search rank of the object#1096
lonvia merged 1 commit into
komoot:masterfrom
lonvia:degrade-importance

Conversation

@lonvia

@lonvia lonvia commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

The wikipedia-based importances can yield rather high values, when a wikipedia link of an OSM object refers to an organisation rather than to the actual location, for example when the head quarter of a company is tagged. This is not much of an issue for Nominatim because the objects in question usually have rather long names. With its strong bias on full names and preference of objects with higher rank, Nominatim will rarely have them float up. In Photon these importance create serious issues because the basic search is based on single-word tokens rather than on full names.

This PR scales importances down, once they go over a per-rank threshold. The threshold is the lower, the higher the rank is. So organisations, which are usually at POI level (rank 30), will be most affected.

This won't make the false positive results go away but at least it will push them down a bit for ranking.

@lonvia
lonvia merged commit a7b6562 into komoot:master Jul 7, 2026
5 checks passed
@lonvia
lonvia deleted the degrade-importance branch July 7, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant