- $db->replace( $searchindex, array(array('si_page')),
- array(
- 'si_page' => $this->mId,
- 'si_title' => $db->strencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ),
- 'si_text' => $db->strencode( $text )
- ), 'SearchUpdate::doUpdate' );
+ $search->update($this->mId, Title::indexTitle( $this->mNamespace, $this->mTitle ),
+ $text);