Exception representing a failure to serialize or unserialize a content object.
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
output( $out, $channel=null)
Throw some output to the user.
getDB( $db, $groups=[], $wiki=false)
Returns a database to be used by current maintenance script.
addDescription( $text)
Set the description text.
fatalError( $msg, $exitCode=1)
Output a message and terminate the current script.
Maintenance script that rebuilds search index table from scratch.
dropMysqlTextIndex()
(MySQL only) Drops fulltext index before populating the table.
createMysqlTextIndex()
(MySQL only) Adds back fulltext index after populating the table.
clearSearchIndex()
Deletes everything from search index.
IMaintainableDatabase $db
getDbType()
Does the script need different DB access? By default, we give Maintenance scripts normal rights to th...
populateSearchIndex()
Populates the search index with content from all pages.
require_once RUN_MAINTENANCE_IF_MAIN