MediaWiki  REL1_22
RebuildTextIndex Class Reference

Maintenance script that rebuilds search index table from scratch. More...

Inheritance diagram for RebuildTextIndex:
Collaboration diagram for RebuildTextIndex:

List of all members.

Public Member Functions

 __construct ()
 execute ()
 getDbType ()
 Does the script need different DB access? By default, we give Maintenance scripts normal rights to the DB.

Public Attributes

const RTI_CHUNK_SIZE = 500

Protected Member Functions

 populateSearchIndex ()
 Populates the search index with content from all pages.

Private Member Functions

 clearSearchIndex ()
 Deletes everything from search index.
 createMysqlTextIndex ()
 (MySQL only) Adds back fulltext index after populating the table.
 dropMysqlTextIndex ()
 (MySQL only) Drops fulltext index before populating the table.

Private Attributes

DatabaseBase $db

Detailed Description

Maintenance script that rebuilds search index table from scratch.

Definition at line 35 of file rebuildtextindex.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 42 of file rebuildtextindex.php.


Member Function Documentation

Deletes everything from search index.

Definition at line 155 of file rebuildtextindex.php.

Referenced by execute().

(MySQL only) Adds back fulltext index after populating the table.

Definition at line 144 of file rebuildtextindex.php.

Referenced by execute().

(MySQL only) Drops fulltext index before populating the table.

Definition at line 132 of file rebuildtextindex.php.

Referenced by execute().

Does the script need different DB access? By default, we give Maintenance scripts normal rights to the DB.

Sometimes, a script needs admin rights access for a reason and sometimes they want no access. Subclasses should override and return one of the following values, as needed: Maintenance::DB_NONE - For no DB access at all Maintenance::DB_STD - For normal DB access, default Maintenance::DB_ADMIN - For admin DB access

Returns:
Integer

Reimplemented from Maintenance.

Definition at line 47 of file rebuildtextindex.php.

References Maintenance\DB_ADMIN.

Populates the search index with content from all pages.

Definition at line 87 of file rebuildtextindex.php.

Referenced by execute().


Member Data Documentation

DatabaseBase RebuildTextIndex::$db [private]

Definition at line 40 of file rebuildtextindex.php.

Definition at line 36 of file rebuildtextindex.php.


The documentation for this class was generated from the following file: