From: Sarah Hoffmann Date: Tue, 22 Oct 2019 21:10:32 +0000 (+0200) Subject: Revert "increase weight for country tokens" X-Git-Tag: deploy~275 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/7ea860b2c083a0b1c3cc99fb07cd803b2000f880?ds=inline;hp=--cc Revert "increase weight for country tokens" This reverts commit 0176cbd25323447163193114ca15ed83d71db36a. --- 7ea860b2c083a0b1c3cc99fb07cd803b2000f880 diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index 47676d59..506d4202 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -187,7 +187,7 @@ class SearchDescription ) { if (!$this->sCountryCode) { $oSearch = clone $this; - $oSearch->iSearchRank += 2; + $oSearch->iSearchRank++; $oSearch->sCountryCode = $oSearchTerm->sCountryCode; // Country is almost always at the end of the string // - increase score for finding it anywhere else (optimisation)