Jump to content

Topic on Extension talk:Semantic MediaWiki

How to persist settings of 'rebuildElasticIndex.php'?

2
S0ring (talkcontribs)

Using MW 1.39.7 & SWM 4.1.3 and ES 7.10.2 for data storage in a Docker container, after restarting the container it necessary to run manually the rebuildElasticIndex.php script, there are always tasks in pending:

The installation of Semantic MediaWiki has classified the following tasks as incomplete and an administrator (or user with sufficient rights) is expected to resolve those tasks before users continue to create or alter content.

Tasks

   The ElasticStore has been selected as default store, yet the extension was unable to find any record that the rebuildElasticIndex.php script was executed, please run the script as instructed.

When $smwgDefaultStore parameter is set

$smwgDefaultStore = 'SMW\Elastic\ElasticStore';

the documentation https://www.semantic-mediawiki.org/wiki/Help:$smwgDefaultStore indicates to run the script manually:

If you change the setting for this configuration parameter, please ensure to run maintenance script "setupStore.php" followed by maintenance script "rebuildElasticIndex.php".

but is there any possibility to persist it?

S0ring (talkcontribs)

It seems the issue doesn't occur anymore, after container restart no tasks in pending (I just moved .smw.json to /usr/local/bin/smw, but it should't affect the index)

Reply to "How to persist settings of 'rebuildElasticIndex.php'?"