Forgot to commit the change to showhideminor. Also removing commented-out strings.
[lhc/web/wiklou.git] / maintenance / rebuildtextindex.php
1 <?php
2 # Rebuild search index table from scratch. This takes several
3 # hours, depending on the database size and server configuration.
4
5 require_once( "commandLine.inc" );
6 require_once( "rebuildtextindex.inc" );
7 $wgTitle = Title::newFromText( "Rebuild text index script" );
8
9 $database = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
10
11 dropTextIndex( $database );
12 rebuildTextIndex( $database );
13 createTextIndex( $database );
14
15 print "Done.\n";
16 exit();
17
18 ?>