fix search for housenumber names

The search still included a lookup of housenumbers in children which is
wrong.
This commit is contained in:
Sarah Hoffmann
2023-07-13 16:43:56 +02:00
parent 2e56182a7f
commit d0f45155c8

View 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))