]> git.openstreetmap.org Git - nominatim.git/commitdiff
also give higher penalty to partial name terms
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 8 Nov 2017 08:09:36 +0000 (09:09 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 8 Nov 2017 08:09:36 +0000 (09:09 +0100)
lib/SearchDescription.php

index d78bf975d3c7f07702f6303f1c366a9af78b8bf4..13775d65fd9c94c19e27a47f1ea64beb46f8f543 100644 (file)
@@ -360,7 +360,7 @@ class SearchDescription
             && (!sizeof($this->aName) || $this->iNamePhrase == $iPhrase)
         ) {
             $oSearch = clone $this;
-            $oSearch->iSearchRank++;
+            $oSearch->iSearchRank += 2;
             if (!sizeof($this->aName)) {
                 $oSearch->iSearchRank += 1;
             }