X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c700421aa7a5509d096d6064379b2793ed191d69..9ef2370a2a6e6383b2e166896bfa379e5faff485:/lib/Geocode.php?ds=sidebyside diff --git a/lib/Geocode.php b/lib/Geocode.php index bf0782f1..9115be0b 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -989,7 +989,6 @@ class Geocode $this->oDB->getAll($sSQL), "Could not get word tokens." ); - $aPossibleMainWordIDs = array(); $aWordFrequencyScores = array(); foreach ($aDatabaseWords as $aToken) { // Very special case - require 2 letter country param to match the country code found @@ -1004,7 +1003,6 @@ class Geocode } else { $aValidTokens[$aToken['word_token']] = array($aToken); } - if (!$aToken['class'] && !$aToken['country_code']) $aPossibleMainWordIDs[$aToken['word_id']] = 1; $aWordFrequencyScores[$aToken['word_id']] = $aToken['search_name_count'] + 1; } if (CONST_Debug) var_Dump($aPhrases, $aValidTokens);