]> git.openstreetmap.org Git - nominatim.git/commit
ignore unwanted categories when computing ranks
authorjustpriyanshu <priyanshuranjan055@gmail.com>
Fri, 28 Aug 2026 08:58:09 +0000 (08:58 +0000)
committerjustpriyanshu <priyanshuranjan055@gmail.com>
Fri, 28 Aug 2026 08:58:09 +0000 (08:58 +0000)
commit7bab54223fa8cc4bedea0cb6337b7c921dd3a81a
tree2164d8ca1e243fa17d14ced500891fe71517f5b5
parent2182dd94923e03dbc6144dacd7f174e2332d75d9
ignore unwanted categories when computing ranks

The checks for unwanted highway and boundary categories were only used
to decide whether a place is rankable at all. The offending categories
remained in the category list, so compute_place_rank() would still pick
up their ranks. Move the checks into drop_unwanted_categories() and
filter the categories before computing ranks.

Refs #4172
lib-sql/functions/place_triggers.sql
lib-sql/functions/placex_triggers.sql
lib-sql/functions/ranking.sql