Jump to content

Handbuch:rebuildtextindex.php

From mediawiki.org
This page is a translated version of the page Manual:Rebuildtextindex.php and the translation is 47% complete.
MediaWiki Version:
1.2

Details

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. You should run it if you see that the search gives no or few results.

This may take several hours, depending on the database size and server configuration.

Optionen/Argumente

Dieses Skript akzeptiert keine Optionen oder Argumente.

Verwendung

php maintenance/run.php rebuildtextindex
Terminal
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Anmerkungen

MediaWiki Version:
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.

Siehe auch