]> git.openstreetmap.org Git - nominatim.git/commitdiff
Revert "increase weight for country tokens"
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 22 Oct 2019 21:10:32 +0000 (23:10 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 22 Oct 2019 21:10:32 +0000 (23:10 +0200)
This reverts commit 0176cbd25323447163193114ca15ed83d71db36a.

lib/SearchDescription.php

index 47676d5952e7c677a0d18b92301162a9813b8cea..506d4202253f61f909c46f3d1c08275b2c12faa9 100644 (file)
@@ -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)