]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/SearchDescription.php
put a heavy penalty on full word searches in address
[nominatim.git] / lib / SearchDescription.php
index ad404528968ad94075bc414af0bc0f5a185873cc..52d15976c79a5dca12ebe291e91f6454d1edcbcc 100644 (file)
@@ -283,7 +283,7 @@ class SearchDescription
             if (!empty($this->aName) || !($bFirstPhrase || $sPhraseType == '')) {
                 if (($sPhraseType == '' || !$bFirstPhrase) && !$bHasPartial) {
                     $oSearch = clone $this;
-                    $oSearch->iSearchRank += 2;
+                    $oSearch->iSearchRank += 5;
                     $oSearch->aAddress[$iWordID] = $iWordID;
                     $aNewSearches[] = $oSearch;
                 } else {