Manual:rebuildtextindex.php
Appearance
MediaWiki バージョン: | ≧ 1.2 |
MediaWiki ファイル: rebuildtextindex.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.0 • 1.42.5 • 1.39.11 |
クラス: | RebuildTextIndex |
詳細
rebuildtextindex.php は、ウィキの検索機能を利用できるようにするための メンテナンス スクリプトで、具体的には searchindex テーブルを再構築します。 検索結果がないか、またはほとんどないことに気付いた場合に、これを実行すべきです。
データベースのサイズやサーバーの設定によっては、この処理には数時間かかる場合があります。
オプション/引数
このスクリプトにはオプション/引数はありません。
使用法
php maintenance/run.php rebuildtextindex
Terminal
$ php maintenance/run.php rebuildtextindex Dropping index... Clearing searchindex table...Done Rebuilding index fields for 29 pages... Rebuild the index... Done.
MediaWiki バージョン 1.39.10 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。
注記
MediaWiki バージョン: | ≦ 1.24 |
Before MediaWiki 1.25, this script does only add new entries to the searchindex table for existing pages. Still, it doesn't purge that table to remove deleted pages.
If you get wrong search results (e.g. because deleted pages are still in the searchindex
table data), this script will not help (T64276). To purge old entries, delete all rows of that table before running the script. This is no longer necessary since MediaWiki 1.25, where this bug has been fixed.
関連項目
- UpdateSearchIndex.php - 最近更新されたページのみを再構築するためのスクリプト。
- Rebuildall.php
- RefreshLinks.php
- Rebuildrecentchanges.php