Manual:Rebuildtextindex.php/ja

rebuildtextindex.php is a maintenance script used to [re]create the text index that allows users to use the search facility in your wiki. 検索結果がないか、またはほとんどないことに気付いた場合に、これを実行すべきです.

データベースのサイズやサーバーの設定によっては、この処理には数時間かかる場合があります.

起動
php maintenance/rebuildtextindex.php

例
vi-notebook:/var/lib/mediawiki1.7# php maintenance/rebuildtextindex.php Dropping index... Rebuilding index fields for 1426 pages... 1000 Rebuild the index... Done.

注記

 * Note that before MediaWiki 1.25 this script does only add new entries to the table for existing pages, but 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 . 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.

関連項目

 * - a script to rebuild only recently updated pages.