X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2613ebfa0143cdd1e3220577d48d9aa8341dbf38..c555b60b366d6efb9acada65e0212196837a8b0f:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 612c1a0f..68a9a7cb 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -658,7 +658,6 @@ class Geocode $this->oDB->getAll($sSQL), 'Could not get word tokens.' ); - $aWordFrequencyScores = array(); foreach ($aDatabaseWords as $aToken) { // Filter country tokens that do not match restricted countries. if ($this->aCountryCodes @@ -681,7 +680,6 @@ class Geocode } else { $aValidTokens[$aToken['word_token']] = array($aToken); } - $aWordFrequencyScores[$aToken['word_id']] = $aToken['search_name_count'] + 1; } // US ZIP+4 codes - if there is no token, merge in the 5-digit ZIP code @@ -781,7 +779,6 @@ class Geocode $aResults += $oSearch->query( $this->oDB, - $aWordFrequencyScores, $this->iMinAddressRank, $this->iMaxAddressRank, $this->iLimit