]> git.openstreetmap.org Git - nominatim.git/commitdiff
Gives preference to special terms like postcode and housenumber
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 17 Dec 2017 19:23:34 +0000 (20:23 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 17 Dec 2017 19:23:34 +0000 (20:23 +0100)
Fixes #846.

lib/SearchDescription.php

index 60d7417347cd287083edd734ba681286085d0bba..13775d65fd9c94c19e27a47f1ea64beb46f8f543 100644 (file)
@@ -326,7 +326,7 @@ class SearchDescription
         ) {
             if ($aSearchTerm['search_name_count'] + 1 < CONST_Max_Word_Frequency) {
                 $oSearch = clone $this;
-                $oSearch->iSearchRank++;
+                $oSearch->iSearchRank += 2;
                 $oSearch->aAddress[$iWordID] = $iWordID;
                 $aNewSearches[] = $oSearch;
             } else {