Setup and configure Elasticsearch

This article explains how setup and configure ES in Litium

Setup Elasticsearch

To setup Elasticsearch you need to download a package from the official site
ES does not have any inbuilt UI, only WebAPI, you can use Kibana to review your data in ES.

Litium also require that the plugin for remote loading of synonym need to be installed. You will find the plugin with installation instructions on


To configure Accelerator to use ES you need to add the connection string to ES into web.config.

   <add name="ElasticsearchConnectionString" connectionString="http://localhost:9200" />

 Note: http://localhost:9200 is the default port number that the Elasticsearch listens on.

The Elasticsearch node will appear in settings, now need to build indices and search will work for your site.

Indices default installetion.PNG

Synonym configuration

Litium is using dynamic synonym to be able to reload them without needing of turning the index offline or manipulating files on all the elasticsearch server nodes. To enable synonyms and that index will be configured to load the synonyms from remote url the below appSettings in web.config need to be set with the domain name that elasticsearch can use to reach your installation.

    <add key="Litium:Elasticsearch:Synonym:Host" value="http://domainname" />

If elasticsearch not can reach the host the index will not be created that prevent index creation.

The same Elasticsearch cluster can be used for multiple Litium applications.

To separate Litium applications, the prefix name must be added to ES index in web.config.

    <add key="Litium:Elasticsearch:Prefix" value="customer1" />