From: Sarah Hoffmann Date: Wed, 8 Nov 2017 08:09:36 +0000 (+0100) Subject: also give higher penalty to partial name terms X-Git-Tag: deploy~352 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/88034466a57f4e8e01632242c2a4648fadcf9d17 also give higher penalty to partial name terms --- diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index d78bf975..13775d65 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -360,7 +360,7 @@ class SearchDescription && (!sizeof($this->aName) || $this->iNamePhrase == $iPhrase) ) { $oSearch = clone $this; - $oSearch->iSearchRank++; + $oSearch->iSearchRank += 2; if (!sizeof($this->aName)) { $oSearch->iSearchRank += 1; }