From: Sarah Hoffmann Date: Tue, 18 Sep 2018 19:54:08 +0000 (+0200) Subject: address tokens get a double search rank also as full terms X-Git-Tag: v3.3.0~92 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/119ffbab40f3422855ca2c769b9e266d6a446d58 address tokens get a double search rank also as full terms Fixes #1170. --- diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index 079cb8a6..35424b52 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -287,7 +287,7 @@ class SearchDescription if (!empty($this->aName) || !($bFirstPhrase || $sPhraseType == '')) { if (($sPhraseType == '' || !$bFirstPhrase) && !$bHasPartial) { $oSearch = clone $this; - $oSearch->iSearchRank++; + $oSearch->iSearchRank += 2; $oSearch->aAddress[$iWordID] = $iWordID; $aNewSearches[] = $oSearch; } else {