Podręcznik:Rebuildtextindex.php
Wersja MediaWiki: | ≥ 1.2 |
Plik MediaWiki: rebuildtextindex.php | |
---|---|
Lokalizacja: | maintenance/ |
Kod źródłowy: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Klasy: | RebuildTextIndex |
Szczegóły
rebuildtextindex.php is a maintenance script used to [re]create the text index, i.e., rebuild the searchindex table, that allows users to use the search facility in your wiki. Skorzystaj z niego, jeżeli wyszukiwarka nie zwraca żadnych wyników lub tylko częściowo.
This may take several hours, depending on the database size and server configuration.
Opcje/argumenty
This script does not take any options or arguments.
Użycie
php maintenance/rebuildtextindex.php
$ php maintenance/rebuildtextindex.php Dropping index... Clearing searchindex table...Done Rebuilding index fields for 29 pages... Rebuild the index... Done.
Uwagi
Wersja 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 (zadanie 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.
Zobacz też
- UpdateSearchIndex.php - a script to rebuild only recently updated pages.
- Rebuildall.php
- RefreshLinks.php
- Rebuildrecentchanges.php