Manual:rebuildtextindex.php

From MediaWiki.org
Jump to: navigation, search


rebuildtextindex.php is a maintenance script used to [re]create the text index that allows users to use the search facility in your wiki. You should run it if you see that search gives no or few results.

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

Invocation[edit | edit source]

php maintenance/rebuildtextindex.php

Example[edit | edit source]

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

Notes[edit | edit source]

  • Note that this does only add new entries to the searchindex table for existing pages, but it doesn't purge that table for 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 (bugzilla:62276).

See also[edit | edit source]

Language: English  • polski