X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fsearch.rebuild_db.php;h=cd7e56c9335dbc9429ab88010c8a13101823080f;hb=525bec1a2e481514e02773cb780fb09489e4a935;hp=1b9917ff5d1a18266978174db05dd43f1e627cea;hpb=429e4a4b8eb428e9631513fc6bb053b4635c7729;p=platal.git diff --git a/bin/search.rebuild_db.php b/bin/search.rebuild_db.php index 1b9917f..cd7e56c 100755 --- a/bin/search.rebuild_db.php +++ b/bin/search.rebuild_db.php @@ -1,7 +1,7 @@ #!/usr/bin/php5 -q debug = 0; // Do not store backtraces -$res = XDB::iterRow("SELECT user_id - FROM auth_user_md5"); +$res = XDB::iterRow('SELECT pid + FROM profiles'); $i = 0; $n = $res->total(); -while ($uid = $res->next()->fetchOneCell()) { - user_reindex($uid); +while ($pid = $res->next()->fetchOneCell()) { + Profile::rebuildSearchTokens($pid); printf("\r%u / %u", ++$i, $n); }