X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/000d133af64522d65f885bb72d4cd099e69bfa75..aca6439eb7bc2cc6a6c2d7df0ebdb299c96c9c41:/lib-php/admin/warm.php?ds=sidebyside diff --git a/lib-php/admin/warm.php b/lib-php/admin/warm.php index 39a37506..338ec2da 100644 --- a/lib-php/admin/warm.php +++ b/lib-php/admin/warm.php @@ -86,8 +86,13 @@ if (!$aResult['reverse-only']) { if ($bVerbose) { echo "\n"; } + + $oTokenizer = new \Nominatim\Tokenizer($oDB); + + $aWords = $oTokenizer->mostFrequentWords(1000); + $sSQL = 'SELECT word FROM word WHERE word is not null ORDER BY search_name_count DESC LIMIT 1000'; - foreach ($oDB->getCol($sSQL) as $sWord) { + foreach ($aWords as $sWord) { if ($bVerbose) { echo "$sWord = "; }