]> git.openstreetmap.org Git - nominatim.git/commit
simplify name matching between boundary and place node
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 9 Apr 2021 19:10:00 +0000 (21:10 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 14 Apr 2021 15:52:59 +0000 (17:52 +0200)
commite7266b52ae4b9e543513df95ad853ba30a7aefb3
tree7de8f30faebce60ca1e644ae5f23035755db384f
parentdc02610408fe2fd77d1d8439cd500a95f1728c0c
simplify name matching between boundary and place node

Instead of normalising the names simply compare them in lower
case. This removes the dependency on the tokenizer for
linking boundaries and nodes. When looking up the linked places
by place type also allow that one name is simply contained in the
other. This catches the frequent case where one of the names has
an addendum (e.g. Newport vs. City of Newport).

Drops the special index for the name lookup and insted relies
on a slightly extended version of the geometry index used for
reverse lookup. Saves around 100MB on a planet.
lib-sql/functions/placex_triggers.sql
lib-sql/indices.sql
lib-sql/tables.sql