From: Sarah Hoffmann Date: Thu, 13 Jul 2023 14:43:56 +0000 (+0200) Subject: fix search for housenumber names X-Git-Tag: v4.3.0~51^2~10 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d0f45155c8560dd17087c023951492c58b933e42 fix search for housenumber names The search still included a lookup of housenumbers in children which is wrong. --- diff --git a/nominatim/api/search/db_search_builder.py b/nominatim/api/search/db_search_builder.py index 2a3153be..f485de09 100644 --- a/nominatim/api/search/db_search_builder.py +++ b/nominatim/api/search/db_search_builder.py @@ -163,6 +163,7 @@ class SearchBuilder: sdata.lookups = [dbf.FieldLookup('name_vector', [t.token for t in hnrs], 'lookup_any'), dbf.FieldLookup('nameaddress_vector', partial_tokens, 'lookup_all') ] + sdata.housenumbers = dbf.WeightedStrings([], []) yield dbs.PlaceSearch(0.05, sdata, sum(t.count for t in hnrs))