X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5d6aabc457e673e825c4cf46585938bcc77aec3b..7e7dd769fda191b50df62a24cfcb0832e5b3eeed:/lib-php/SearchDescription.php diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index 01d06725..4d944bfb 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -223,11 +223,14 @@ class SearchDescription * Add the given full-word token to the list of terms to search for in the * name. * - * @param interger iId ID of term to add. + * @param interger iId ID of term to add. + * @param bool bRareName True if the term is infrequent enough to not + * require other constraints for efficient search. */ - public function addNameToken($iId) + public function addNameToken($iId, $bRareName) { $this->aName[$iId] = $iId; + $this->bRareName = $bRareName; } /** @@ -250,11 +253,6 @@ class SearchDescription $this->iNamePhrase = $iPhraseNumber; } - public function markRareName() - { - $this->bRareName = true; - } - /** * Set country restriction for the search. *