X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/356724fb8b8d34ba92b5161dec91e7afb18ab99e..9f880c367c4a9fd8a2950011eeba22c77ab0c914:/website/search.php diff --git a/website/search.php b/website/search.php index 5733dde4..9940d815 100755 --- a/website/search.php +++ b/website/search.php @@ -320,7 +320,7 @@ { $sQuery = str_replace($aSpecialTerm[0], ' ', $sQuery); $sToken = $oDB->getOne("select make_standard_name('".$aSpecialTerm[1]."') as string"); - $sSQL = 'select * from (select word_id,word_token, word, class, type, location, country_code, operator'; + $sSQL = 'select * from (select word_id,word_token, word, class, type, country_code, operator'; $sSQL .= ' from word where word_token in (\' '.$sToken.'\')) as x where (class is not null and class not in (\'place\')) or country_code is not null'; if (CONST_Debug) var_Dump($sSQL); $aSearchWords = $oDB->getAll($sSQL); @@ -397,10 +397,10 @@ { // Check which tokens we have, get the ID numbers - $sSQL = 'select word_id,word_token, word, class, type, location, country_code, operator, search_name_count'; + $sSQL = 'select word_id,word_token, word, class, type, country_code, operator, search_name_count'; $sSQL .= ' from word where word_token in ('.join(',',array_map("getDBQuoted",$aTokens)).')'; // $sSQL .= ' and search_name_count < '.CONST_Max_Word_Frequency; -// $sSQL .= ' group by word_token, word, class, type, location, country_code'; +// $sSQL .= ' group by word_token, word, class, type, country_code'; if (CONST_Debug) var_Dump($sSQL);