penalize housenumber after the postcode

This commit is contained in:
Sarah Hoffmann
2017-10-24 23:30:41 +02:00
parent 919b1b42fa
commit 7caa67d8ec

View File

@@ -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;