Help:Maintenance script rebuildElasticIndex.php

From Linux Web Expert

Revision as of 09:58, 3 September 2022 by >Kghbln (upd)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:MW file/noslash Template:MW file/noslash 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 an unknown date unknown versions of MediaWiki.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

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

Parameters

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

File:OOjs UI icon lightbulb-yellow.svg <translate> Note:</translate> 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

#scite could not render a citation text for reference "gh:smw:4152" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:4474" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:3054 
  2. ^ gh:smw:4474 
  3. ^ gh:smw:4152 
  4. ^ gh:smw:1983 
  5. ^ gh:smw:1985