X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/cd9b0c9a201e383a2cc0ae22efa247d9107eee7f..a79ab417823dbb065d94a803633e31db2067cd0b:/lib-php/SearchDescription.php diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index fbf6b650..65df58ef 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -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.