]> git.openstreetmap.org Git - nominatim.git/commit
Update SQL ranking and triggers to use ltree categories
authorItz-Agasta <rupamgolui69@gmail.com>
Wed, 1 Jul 2026 16:00:03 +0000 (21:30 +0530)
committerItz-Agasta <rupamgolui69@gmail.com>
Wed, 1 Jul 2026 16:00:03 +0000 (21:30 +0530)
commit553ce39c1bd6cf97a2a0f24c0932f55e84b553cd
tree73f91608519b8cf83755fe626ad9933791222109
parent645a1a3d60f5433190d6779a6de9773c1432102d
Update SQL ranking and triggers to use ltree categories

Adapt is_rankable_place(), compute_place_rank(), and the
placex_update trigger to query the categories column using ltree
containment operators (<@) instead of class/type comparisons.

compute_place_rank() now iterates all categories and selects the
best rank. Boundary linking extracts the place type from
categories instead of extratags.
lib-sql/functions/place_triggers.sql
lib-sql/functions/placex_triggers.sql
lib-sql/functions/ranking.sql