From: Sarah Hoffmann Date: Sun, 17 Dec 2017 19:23:34 +0000 (+0100) Subject: Gives preference to special terms like postcode and housenumber X-Git-Tag: v3.1.0~13 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/cdfa31c390851487af59562b90bc451eee56664d Gives preference to special terms like postcode and housenumber Fixes #846. --- diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index 60d74173..13775d65 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -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 {