mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 05:18:00 +00:00
fix search for housenumber names
The search still included a lookup of housenumbers in children which is wrong.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user