MediaWiki  master
SearchUpdate Class Reference

Database independent search index updater. More...

Inheritance diagram for SearchUpdate:
Collaboration diagram for SearchUpdate:

Public Member Functions

 __construct ( $id, $page, $c=null)
 
 doUpdate ()
 Perform actual update for the entry. More...
 
 updateText ( $text, SearchEngine $se=null)
 Clean text for indexing. More...
 

Detailed Description

Database independent search index updater.

Definition at line 37 of file SearchUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

SearchUpdate::__construct (   $id,
  $page,
  $c = null 
)
Parameters
int$idPage id to update
PageIdentity$pagePage to update
Content | null$cContent of the page to update.

Definition at line 55 of file SearchUpdate.php.

References wfDeprecated().

Member Function Documentation

◆ doUpdate()

SearchUpdate::doUpdate ( )

Perform actual update for the entry.

Implements DeferrableUpdate.

Definition at line 73 of file SearchUpdate.php.

References $type, and updateText().

◆ updateText()

SearchUpdate::updateText (   $text,
SearchEngine  $se = null 
)

Clean text for indexing.

Only really suitable for indexing in databases. If you're using a real search engine, you'll probably want to override this behavior and do something nicer with the original wikitext.

Parameters
string$text
SearchEngine | null$seSearch engine
Returns
string

Definition at line 114 of file SearchUpdate.php.

Referenced by doUpdate().


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