|
MediaWiki master
|
Database independent search index updater. More...
Public Member Functions | |
| __construct ( $id, $page, ?Content $c=null) | |
| doUpdate () | |
| Perform actual update for the entry. | |
| updateText ( $text, ?SearchEngine $se=null) | |
| Clean text for indexing. | |
Database independent search index updater.
Definition at line 24 of file SearchUpdate.php.
| MediaWiki\Search\SearchUpdate::__construct | ( | $id, | |
| $page, | |||
| ?Content | $c = null ) |
| int | $id | Page id to update |
| PageIdentity | $page | Page to update |
| Content | null | $c | Content of the page to update. |
Definition at line 42 of file SearchUpdate.php.
| MediaWiki\Search\SearchUpdate::doUpdate | ( | ) |
Perform actual update for the entry.
Definition at line 51 of file SearchUpdate.php.
References MediaWiki\MainConfigNames\DisableSearchUpdate, MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\Search\SearchUpdate\updateText().
Referenced by MediaWiki\Search\SearchEventIngress\handlePageLatestRevisionChangedEvent().
| MediaWiki\Search\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.
| string | $text | |
| SearchEngine | null | $se | Search engine |
Definition at line 95 of file SearchUpdate.php.
References MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\Search\SearchUpdate\doUpdate().