]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/SearchDescription.php
address tokens get a double search rank also as full terms
[nominatim.git] / 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 {