v3.0.0+
Status: | effective |
Progress: | 75% |
Version: | 3.0.0+ |
ElasticStore
From Linux Web Expert
(Redirected from Help:SMWElasticSearch)
Template:Interlanguagelink: en
N/A | |
---|---|
Provides information about using Elasticsearch | |
Table of Contents | |
Search feature information | |
---|---|
ElasticStore the component to establish a connection between Semantic MediaWiki and a Elasticsearch cluster. | |
Collection | |
Keywords | |
The ElasticStore was introduced as part of Semantic MediaWiki 3.01 to provide a powerful and scalable Query Engine that can serve enterprise users and wiki-farm users better by moving query heavy computation to an external entity (meaning separated from the main DB master/replica) known as Elasticsearch.2.
{{#github:src/Elastic/README.md}}
Upgrading ElasticSearch with SMW 4.1.3
If you are using ElasticStore as a backend, then you need to perform the following changes when using SMW 4.1.3 or above3:
- Step 1: Upgrade your version of Elastic Search to 7.10.2 (if you are using docker that should work without any other action than changing the version number)
- Step 2: Make sure your version of the elasticsearch package is right, you might want to add it to the composer.local.json:
`COMPOSER=composer.local.json composer require elasticsearch/elasticsearch "7.17.2"`
- Step 3: Add $smwgElasticsearchCredentials after $smwgElasticsearchEndpoints:
$smwgElasticsearchEndpoints = [ [ 'host' => $elasticSearchHost, 'port' => 9200, 'scheme' => 'http', 'user' => $elastic_user, 'pass' => $elastic_password ] ]; $smwgElasticsearchCredentials = [ 'host' => $elasticSearchHost, 'port' => 9200, 'scheme' => 'http', 'user' => $elastic_user, 'pass' => $elastic_password, ];
See also
Elasticsearch consumes a lot of resources. Make sure that you allocate sufficient resources. If unsure check your system regularly for errors potentially related to the lack of resources.4
- Hardware
References
- ^ gh:smw:3054
- ^ Elasticsearch is a highly scalable open-source full-text search and analytics engine
- ^ gh:smw:5614
- ^ gh:smw:5035