]> git.openstreetmap.org Git - nominatim.git/commitdiff
housenumber-only searches cannot be combined with qualifiers
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 28 Jan 2024 17:09:48 +0000 (18:09 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 28 Jan 2024 18:03:11 +0000 (19:03 +0100)
nominatim/api/search/token_assignment.py

index b874dcd761a1a31d127baf9e7e0259af6cacfae9..7a53a20efe35bd80c3f43cc68aeab5e27894983b 100644 (file)
@@ -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)