From b94229fb8eeb75cd7799b80539c2d4b525f43442 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 17 Dec 2017 16:00:44 +0100 Subject: [PATCH] Give higher penalty to partial search terms Avoids that the interpreation of a term as partial term is ranked higher than as a special term like postcode or house number. Fixes #847. --- lib/SearchDescription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index bf45dada..60d74173 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; } -- 2.39.5