X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6dd2b9c2eca74870107376d87d37589e0ff4694b..f9517e91433a9f33a01f75efe3629330196f21f5:/lib-php/SearchDescription.php diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index 228b0999..2b39443f 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -614,7 +614,7 @@ class SearchDescription // too many results are expected for the street, i.e. if the result // will be narrowed down by an address. Remeber that with ordering // every single result has to be checked. - if ($this->sHouseNumber && (!empty($this->aAddress) || $this->sPostcode)) { + if ($this->sHouseNumber && ($this->bRareName || !empty($this->aAddress) || $this->sPostcode)) { $sHouseNumberRegex = '\\\\m'.$this->sHouseNumber.'\\\\M'; $aOrder[] = ' ('; $aOrder[0] .= 'EXISTS(';