]> git.openstreetmap.org Git - nominatim.git/commitdiff
respect exclude_place_ids for housenumber search
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 2 May 2022 09:01:54 +0000 (11:01 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 2 May 2022 09:44:10 +0000 (11:44 +0200)
lib-php/SearchDescription.php

index fbf6b650bc9ee8dffcdfc738e15239e5d2bc69a9..65df58ef0850b120bbc4e5a1b7b8af19dfd9ef34 100644 (file)
@@ -642,6 +642,7 @@ class SearchDescription
             // Housenumbers on streets and places.
             $sPlacexSql = 'SELECT array_agg(place_id) FROM placex';
             $sPlacexSql .= ' WHERE parent_place_id = sin.place_id AND sin.address_rank < 30';
+            $sPlacexSql .= $this->oContext->excludeSQL(' AND place_id');
             $sPlacexSql .= '       and housenumber ~* E'.$sHouseNumberRegex;
 
             // Interpolations on streets and places.