]> git.openstreetmap.org Git - nominatim.git/commit
Search housenumbers with unknown address parts by housenumber term
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 19 Nov 2020 11:06:53 +0000 (12:06 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 25 Nov 2020 10:36:10 +0000 (11:36 +0100)
commit22800d7d59f952ced174008669e5eddadf1117d8
tree70f6657fbfaf611c3b0cab5b769f8bd17b55b774
parentf21853ea9dcc50c468d0c92ba301fd2b4fd94325
Search housenumbers with unknown address parts by housenumber term

House numbers need special handling because they may appear after
the street term. That means we canot just use them as the main name
for searches where the address has its own search term entries.
Doing this right now, we are able to find '40, Main St, Town' but not
'Main St 40, Town'.

This switches to using the housenumber token as the name term instead.
House number tokens can get special handling when building the search
query that covers the case where they come after the street.

The main disadvantage is that this once more increases the numbers
of possible search interpretation of which we have already too many.

no penalty for housenumber searches
lib/SearchDescription.php
sql/functions/normalization.sql
test/bdd/db/import/search_name.feature
test/bdd/steps/db_ops.py
utils/query.php