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

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

Property "Has description" (as page type) with input value "The ElasticStore was introduced as part of Semantic MediaWiki 3.0 to provide a powerful and scalable Query Engine that relies on the Elasticsearch search platform." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

References

  1. ^ gh:smw:3054 
  2. ^  Elasticsearch is a highly scalable open-source full-text search and analytics engine
  3. ^ gh:smw:5614 
  4. ^ gh:smw:5035