Change from Elasticsearch v5 to v7

  • Updated

The default search provider for Optimizely Configured Commerce is Elasticsearch version 5. You can upgrade to Elasticsearch version 7 by updating the Search Provider Name and Search Indexer Name in Search Settings. Because this change requires a Full Rebuild of the search index, the new search provider is down until the rebuild has completed. To avoid this downtime, follow the steps below.

Before changing to version 7, check if you currently have custom extensions in Elasticsearch version 5. If so, you may want to migrate your code first to use Elasticsearch version 7 (default Build Version 2) and third party search pipelines.

  1. Go to AdministrationSettings Search.
  2. Set the Search Indexer Name to Elasticsearch v7.
  3. Keep the Search Provider Name as Elasticsearch to avoid downtime until the new Elasticsearch v7 index is ready. Elasticsearch v7 receives the default Search Index settings. You can manually update these settings by copying from Elasticsearch v5.
  4. Click Save.
  5. Go to Marketing Indexing.
  6. Click Rebuild All.
  7. Wait for the process to finish, and verify that it completed successfully.
  8. Go to Administration > SettingsSearch.
  9. Verify that the Search Provider Name has changed to Elasticsearch v7.