Skip to content

Configure Magento 2 for Elasticsearch

After enabling Elasticsearch in Stratus, it must be configured in the Magento 2 Admin:

  1. Log into the Magento 2 Administration backend.
  2. Go to Stores > Configuration.
  3. Go to Catalog > Catalog in the sidebar menu.
    • De-select Search Engine : Use system value*.
    • Elasticsearch Server HostnameEnter "elasticsearch".
  4. Click Test Connection to validate the settings.
  5. Click Save Config to save the changes.

After activating Elasticsearch, re-index the catalogsearch_fulltext index using the Magento Admin, SSH access, or the Stratus Control panel CLI commands.