Document rebuilding the MediaWiki search index

Change-Id: Ie4eba5bf82f46aa4532e5e1f406dba05a7a5d674
This commit is contained in:
Jeremy Stanley 2014-10-18 21:47:08 +00:00
parent 921c6cff3e
commit 1ad0a66912
1 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,14 @@ active Mediawiki install slot. To perform a Mediawiki upgrade:
slot). If you used the ``cd`` in step 2 this should be the case.
Mediawiki DB schemas are backward compatible so we can upgrade it
without taking down the active slot.
#. If there were updates to the CirrusSearch extension, search may stop
working unless the index is rebuilt. The easiest way to do this is
``php extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php
--startOver`` followed by ``php
extensions/CirrusSearch/maintenance/forceSearchIndex.php`` relative to
the inactive slot you've upgraded (option 1.A as described at
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch.git/HEAD/README
in the upgrading section).
#. At this point we are ready to change the ``/srv/mediawiki/w``
symlink to point to the slot we just upgraded
``rm -f /srv/mediawiki/w && ln -s /srv/mediawiki/$PREVIOUSLY_INACTIVE_SLOT /srv/mediawiki/w``.