From d0f45155c8560dd17087c023951492c58b933e42 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 13 Jul 2023 16:43:56 +0200 Subject: [PATCH] fix search for housenumber names The search still included a lookup of housenumbers in children which is wrong. --- nominatim/api/search/db_search_builder.py | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.5