Upgrading to Elasticsearch 6.8

Elasticsearch 6.8.x is supported for Liferay DXP 7.2. If you’re upgrading Liferay DXP and still running Elasticsearch 6.1, it’s time to upgrade your Elasticsearch servers too. If you’re setting up a new system and not already running a remote Elasticsearch 6.1.x server, follow the installation guide to install Elasticsearch and the configuration guide to configure the Elasticsearch adapter. Here, you’ll learn to upgrade an existing Elasticsearch 6.1.x server (or cluster) to Elasticsearch 6.8.x:

  1. Install and configure Elasticsearch 6.8.x.

  2. Disable X-Pack Security in elasticsearch.yml unless you have an Liferay Enterprise Search subscription which gives you access to the LES Security app:

    xpack.security.enabled: false
  3. Configure the bundled Liferay Connector to Elasticsearch 6.

  4. Re-index all search and spell check indexes.

Learn about configuring Elasticsearch here.


Once the Elasticsearch adapter is installed and talking to the Elasticsearch cluster, navigate to Control PanelConfigurationServer Administration, and click Execute for the Reindex all search indexes entry.

You must also re-index the spell check indexes.

Reverting to Elasticsearch 6.1

Stuff happens. If that stuff involves an unrecoverable failure during the upgrade to Elasticsearch 6.8, roll back to Elasticsearch 6.1 and regroup.

Since your 6.1 and 6.8 are currently two separate installations, this procedure is straightforward:

  1. Stop the Liferay Connector to Elasticsearch 6.

  2. Stop Elasticsearch 6.8 and make sure that the Elasticsearch 6.1 elasticsearch.yml and the connector app are configured to use the same port (9200 by default).

  3. Start the Elasticsearch server, and then restart the Liferay Connector to Elasticsearch 6.

« Upgrading to Elasticsearch 6.5Upgrading to Elasticsearch 7 »
Was this article helpful?
0 out of 0 found this helpful