]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix search for housenumber names
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 13 Jul 2023 14:43:56 +0000 (16:43 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 17 Jul 2023 14:27:25 +0000 (16:27 +0200)
The search still included a lookup of housenumbers in children which is
wrong.

nominatim/api/search/db_search_builder.py

index 2a3153be334d17ed3262853cd156172febb0f8b3..f485de0914a0fce3348f01fe8adce65e214c034e 100644 (file)
@@ -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))