| MediaWiki file: updateSearchIndex.php | |
|---|---|
| Location: | maintenance/ |
| Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
| Classes: | UpdateSearchIndex |
updateSearchIndex.php is a {{ll|Manual:Maintenance scripts|maintenance script}} used for periodic off-peak updating of the search index for the recently changed pages. If you need to rebuild the search index entirely, run rebuildtextindex.php instead.
Invocation
php maintenance/updateSearchIndex.php [-s start-timestamp] [-e end-timestamp] [-p posfile] [-l locktime] [-q]
Example
$ php maintenance/updateSearchIndex.php -s 20081020224040
Updating searchindex between 20081020224040 and 20091209103945
--- Waiting for lock ---
--- Unlocking --
Done
Write permissions
The script will write the end timestamp on the file specified by the -p parameter, that will default to searchUpdate.WIKI_ID.pos.
The script will fail if the user executing the command doesn't have permissions to write to that file.
To prevent the error, specify a file with write permissions, or create the file yourself and give it the appropriate permissions.
Notes
- It will not update the search index for the pages that do not appear in Special:Recentchanges.
- This script ignores the
$wgDisableSearchUpdatesetting.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.