remove address penalty for postcode search

Searches of the form <postcode> <city> are in fact quite common.
This commit is contained in:
Sarah Hoffmann
2025-02-20 11:05:28 +01:00
parent add9244a2f
commit 46c4446dc2

View File

@@ -148,7 +148,6 @@ class SearchBuilder:
[t.token for r in address
for t in self.query.get_partials_list(r)],
lookups.Restrict)]
penalty += 0.2
yield dbs.PostcodeSearch(penalty, sdata)
def build_housenumber_search(self, sdata: dbf.SearchData, hnrs: List[Token],