]> git.openstreetmap.org Git - nominatim.git/commitdiff
address tokens get a double search rank also as full terms
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Sep 2018 19:54:08 +0000 (21:54 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Sep 2018 19:54:08 +0000 (21:54 +0200)
Fixes #1170.

lib/SearchDescription.php

index 079cb8a6e65d1c72d8dd8693e40d740569206d45..35424b529244c9071a89d808a2419e3dba00f0ab 100644 (file)
@@ -287,7 +287,7 @@ class SearchDescription
             if (!empty($this->aName) || !($bFirstPhrase || $sPhraseType == '')) {
                 if (($sPhraseType == '' || !$bFirstPhrase) && !$bHasPartial) {
                     $oSearch = clone $this;
-                    $oSearch->iSearchRank++;
+                    $oSearch->iSearchRank += 2;
                     $oSearch->aAddress[$iWordID] = $iWordID;
                     $aNewSearches[] = $oSearch;
                 } else {