X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b14ce959d9532f192b748b12f6c71f23a9c1a60b..90b29aa8080ffae08084cf556b45e05f9f2d3198:/lib-php/TokenWord.php?ds=sidebyside diff --git a/lib-php/TokenWord.php b/lib-php/TokenWord.php index c9a43915..a7557d38 100644 --- a/lib-php/TokenWord.php +++ b/lib-php/TokenWord.php @@ -1,4 +1,12 @@ hasName() @@ -70,13 +78,12 @@ class Word } } elseif (!$oSearch->hasName(true)) { $oNewSearch = $oSearch->clone(1); - $oNewSearch->addNameToken($this->iId); - if (CONST_Search_NameOnlySearchFrequencyThreshold + $oNewSearch->addNameToken( + $this->iId, + CONST_Search_NameOnlySearchFrequencyThreshold && $this->iSearchNameCount < CONST_Search_NameOnlySearchFrequencyThreshold - ) { - $oNewSearch->markRareName(); - } + ); return array($oNewSearch); }