address tokens get a double search rank also as full terms

Fixes #1170.
This commit is contained in:
Sarah Hoffmann 2018-09-18 21:54:08 +02:00
parent eb615347d2
commit 119ffbab40

View 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 {