X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/919b1b42fa1c2823bb7945d3988e3b67f1b006fb..7caa67d8ecb622c6f6fe300156a820f71101e61a:/lib/SearchDescription.php diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index e9495852..702e7dea 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -247,7 +247,10 @@ class SearchDescription $oSearch->iSearchRank++; } // also must not appear in the middle of the address - if (sizeof($this->aAddress) || sizeof($this->aAddressNonSearch)) { + if (sizeof($this->aAddress) + || sizeof($this->aAddressNonSearch) + || $this->sPostcode + ) { $oSearch->iSearchRank++; } $aNewSearches[] = $oSearch;