X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c386cca73f3fd1e10681f3f157544e46d74e5b48..ff36d7d8df16d1a1d94656bda7b8b7d4b9422a3a:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 0c93e0a9..7ab53d97 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -18,7 +18,7 @@ class Geocode protected $aLangPrefOrder = array(); protected $aExcludePlaceIDs = array(); - protected $bReverseInPlan = false; + protected $bReverseInPlan = true; protected $iLimit = 20; protected $iFinalLimit = 10; @@ -642,12 +642,6 @@ class Geocode $oValidTokens = new TokenList(); if (!empty($aTokens)) { - $sSQL = 'SELECT word_id, word_token, word, class, type, country_code, operator, search_name_count'; - $sSQL .= ' FROM word '; - $sSQL .= ' WHERE word_token in ('.join(',', $this->oDB->getDBQuotedList($aTokens)).')'; - - Debug::printSQL($sSQL); - $oValidTokens->addTokensFromDB( $this->oDB, $aTokens,