avoid multi-term partials in names

Names are either full words or single-word partial names.
Searching for multi-word partials yields exactly the same
result as with full words.
This commit is contained in:
Sarah Hoffmann
2021-03-11 20:42:37 +01:00
parent 00b05e2394
commit 3933fc3ad3

View File

@@ -356,6 +356,7 @@ class SearchDescription
if ((!$this->sPostcode && !$this->aAddress && !$this->aAddressNonSearch)
&& ((empty($this->aName) && empty($this->aNameNonSearch)) || $this->iNamePhrase == $iPhrase)
&& strpos($sToken, ' ') === false
) {
$oSearch = clone $this;
$oSearch->iSearchRank++;