Manual:rebuildtextindex.php

This page is a translated version of the page Manual:Rebuildtextindex.php and the translation is 53% complete.
MediaWiki バージョン:
1.2

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
Terminal

注記

MediaWiki バージョン:
1.24
  • Note that before MediaWiki 1.25 this script does only add new entries to the searchindex 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 (タスク 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.

関連項目