From: Sarah Hoffmann Date: Sun, 28 Jan 2024 17:09:48 +0000 (+0100) Subject: housenumber-only searches cannot be combined with qualifiers X-Git-Tag: v4.4.0~23^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f07f8530a824ed7b4d26e8d6697c57a69426919e?hp=--cc housenumber-only searches cannot be combined with qualifiers --- f07f8530a824ed7b4d26e8d6697c57a69426919e diff --git a/nominatim/api/search/token_assignment.py b/nominatim/api/search/token_assignment.py index b874dcd7..7a53a20e 100644 --- a/nominatim/api/search/token_assignment.py +++ b/nominatim/api/search/token_assignment.py @@ -390,7 +390,7 @@ class _TokenSequence: yield from self._get_assignments_address_backward(base, query) # variant for special housenumber searches - if base.housenumber: + if base.housenumber and not base.qualifier: yield dataclasses.replace(base, penalty=self.penalty)