fixed discussion namespace
[lhc/web/wiklou.git] / maintenance / rebuildtextindex.php
1 <?php
2 /**
3 * Rebuild search index table from scratch. This takes several
4 * hours, depending on the database size and server configuration.
5 *
6 * @todo document
7 * @package MediaWiki
8 * @subpackage Maintenance
9 */
10
11 /** */
12 require_once( "commandLine.inc" );
13 require_once( "rebuildtextindex.inc" );
14 $wgTitle = Title::newFromText( "Rebuild text index script" );
15
16 $database = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
17
18 dropTextIndex( $database );
19 rebuildTextIndex( $database );
20 createTextIndex( $database );
21
22 print "Done.\n";
23 exit();
24
25 ?>