]> git.openstreetmap.org Git - nominatim.git/commit
revert to using full names for street name matching
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 6 Dec 2021 10:38:38 +0000 (11:38 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 6 Dec 2021 10:38:38 +0000 (11:38 +0100)
commit44cfce1ca4caf9fb716ff7c37682427d9bd3d31e
treecbaded76f8699565012adae65b554b6698b53003
parentbb175cc95898de420781867973b38d033c187e81
revert to using full names for street name matching

Using partial names turned out to not work well because there are
often similarly named streets next to each other. It also
prevents us from being able to take into account all addr:street:*
tags.

This change gets all the full term tokens for the addr:street tags
from the DB. As they are used for matching only, we can assume that
the term must already be there or there will be no match. This
avoid creating unused full name tags.
nominatim/tokenizer/icu_tokenizer.py
test/python/tokenizer/test_icu.py