---
title: "Magento 2.4 Elasticsearch setup"
canonical_url: "https://www.zone.lv/help/kb/magento-elasticsearch-setup/"
post_type: "ht_kb"
published: "2024-04-24T11:44:00+00:00"
modified: "2025-01-10T09:06:29+00:00"
language: "en"
author: "martin"
taxonomies:
  ht_kb_category:
    - name: "Elasticsearch"
      url: "https://www.zone.lv/help/kb-categories/elasticsearch-en/"
  ht_kb_tag:
    - name: "elasticsearch"
      url: "https://www.zone.lv/help/kb-tags/elasticsearch-en/"
    - name: "magento"
      url: "https://www.zone.lv/help/kb-tags/magento-en/"
---

# Magento 2.4 Elasticsearch setup

In order to use Elasticsearch, you need to order a new Elasticsearch instance in the My Zone control panel under `Databases` → `Elasticsearch` → `+ Add New Elasticsearch Instance`

Then log in to the Magento admin panel and navigate: `Stores` → `Settings` → `Configuration` → `Catalog` → `Catalog` → `Catalog Search`.

In the settings window that pops up, configure:

- Search Engine: **Elasticsearch 7.0+**
- Elasticsearch Server hostname: **https://**virtXXX**.elastic.zonevs.eu**
- Elasticsearch Server port: **443**
- Elasticsearch HTTP Auth: **Yes**
- Elasticsearch HTTP Username: **virtXXX**
- Elasticsearch HTTP Password: **PASSWORD**

In the Hostname and Username configuration, **XXX** must be replaced by the number displayed when adding the instance of Elasticsearch.

The ****PASSWORD**** can be seen and copied by clicking on the eye icon next to the password field.

![](https://www.zone.lv/static/sites/5/Elastic-ENG.png)
