el_to should be varchar in oracle
[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 * @addtogroup Maintenance
8 */
9
10 /** */
11 require_once( "commandLine.inc" );
12 require_once( "rebuildtextindex.inc" );
13 $wgTitle = Title::newFromText( "Rebuild text index script" );
14
15 $database = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
16
17 dropTextIndex( $database );
18 rebuildTextIndex( $database );
19 createTextIndex( $database );
20
21 print "Done.\n";
22 exit();
23
24 ?>