From 7caa67d8ecb622c6f6fe300156a820f71101e61a Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 24 Oct 2017 23:30:41 +0200 Subject: [PATCH] penalize housenumber after the postcode --- lib/SearchDescription.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.45.1