- $searchindex = $this->db->tableName( 'searchindex' );
- if ( $this->db->indexExists( 'searchindex', 'si_title', __METHOD__ ) ) {
+ $dbw = $this->getDB( DB_MASTER );
+ $searchindex = $dbw->tableName( 'searchindex' );
+ if ( $dbw->indexExists( 'searchindex', 'si_title', __METHOD__ ) ) {