mw docker elasticsearch
editelasticsearch service
Synopsis
edit
Elasticsearch service
editUsing this will automatically configure an elasticsearch server for MediaWiki via the CirrusSearch extension. In order for this to do anything you will need to CirrusSearch extension installed and enabled.
$wgCirrusSearchServers = [ 'elasticsearch' ];
In order to configure a search index for a wiki, you’ll need to run some maintenance scripts:
# Configure the search index and populate it with content
php extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php
php extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipLinks --indexOnSkip
php extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipParse
And you’ll need to process the job queue any time you add/update content and want it updated in ElasticSearch
php maintenance/runJobs.php
Documentation
edit
Options inherited from parent commands
edit-c, --context string The context to use (default "default") --help Help for this command --no-interaction Do not ask any interactive questions -v, --verbose count Increase output verbosity. Example: --verbose=2 or -vv
SEE ALSO
edit- mw docker - An advanced docker compose based development environment
- mw docker elasticsearch create - Create the containers
- mw docker elasticsearch destroy - Destroy the containers
- mw docker elasticsearch exec - Execute a command in the main container
- mw docker elasticsearch expose - Expose a port in a running container
- mw docker elasticsearch image - Interact with the image used for the service
- mw docker elasticsearch start - Start the containers
- mw docker elasticsearch stop - Stop the containers