forked from hans/Nominatim
remove address penalty for postcode search
Searches of the form <postcode> <city> are in fact quite common.
This commit is contained in:
@@ -148,7 +148,6 @@ class SearchBuilder:
|
|||||||
[t.token for r in address
|
[t.token for r in address
|
||||||
for t in self.query.get_partials_list(r)],
|
for t in self.query.get_partials_list(r)],
|
||||||
lookups.Restrict)]
|
lookups.Restrict)]
|
||||||
penalty += 0.2
|
|
||||||
yield dbs.PostcodeSearch(penalty, sdata)
|
yield dbs.PostcodeSearch(penalty, sdata)
|
||||||
|
|
||||||
def build_housenumber_search(self, sdata: dbf.SearchData, hnrs: List[Token],
|
def build_housenumber_search(self, sdata: dbf.SearchData, hnrs: List[Token],
|
||||||
|
|||||||
Reference in New Issue
Block a user