00001 <?php 00002 # Rebuild search index table from scratch. This takes several 00003 # hours, depending on the database size and server configuration. 00004 00005 require_once( "commandLine.inc" ); 00006 require_once( "./rebuildtextindex.inc" ); 00007 $wgTitle = Title::newFromText( "Rebuild text index script" ); 00008 00009 $wgDBuser = $wgDBadminuser; 00010 $wgDBpassword = $wgDBadminpassword; 00011 00012 dropTextIndex(); 00013 rebuildTextIndex(); 00014 createTextIndex(); 00015 00016 print "Done.\n"; 00017 exit(); 00018 00019 ?>