Maintenance script "rebuild­Elastic­Index.php"

From semantic-mediawiki.org
(Redirected from Maintenance script "rebuild­Elastic­Index.php")
Maintenance script "rebuild­Elastic­Index.php"ElasticStore/Index rebuild/tr
rebuildElasticIndex.php
Allows to rebuild all the semantic data for the Elasticsearch index
Further Information
Provided by: Semantic MediaWiki
Added: 3.0.0
Removed: still in use
Location (path): ./extensions/SemanticMediaWiki/maintenance/
Table of Contents

The "rebuildElasticIndex.php" maintenance script allows to update the Elasticsearch data store (ElasticStore). The maintenance script was introduced in Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x..12

Depending on the size and editing activity of the respective wiki it is recommended to run this maintenance script either weekly or monthly via cron.

Usage[edit]

php rebuildElasticIndex.php [--with-maintenance-log]

Parameters[edit]

Maintenance scripts provide generic maintenance parameters, script dependent parameters and depending on the maintenance script script specific parameters which are described on this page if provided.

Script specific parameters
Parameter Description
--with-maintenance-log Adds a log entry to the "Semantic MediaWiki log" on special page "Log" (&type=smw).3

NoteNote:  If you are using this parameter make sure that MediaWiki's configuration parameter $wgMaxNameChars (MediaWiki.org) is set to a value not lower than "18".4 Otherwise an exception will be issued informing about the minimum value for this setting ("32" or higher is recommended).5


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:3054
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:4474
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:4152
  4. ^  Semantic MediaWiki: GitHub issue gh:smw:1983
  5. ^  Semantic MediaWiki: GitHub pull request gh:smw:1985