Magento Open Source and OpenSearch search integration

Magento Open Source uses OpenSearch as its required catalog search engine, so the version, host, security and index design decide whether storefront search works. This page explains how to plan and build that connection in infrastructure you control.

On this page

How Magento Open Source connects to OpenSearch for catalog search

Magento Open Source requires OpenSearch as its catalog search engine, so a team launching or running a self-hosted store has to get three things right: match the OpenSearch version to the Magento 2.4.x line you run, place OpenSearch on a separate host with TLS and authentication enabled, and configure index prefixes so each store view or environment keeps its own indexes. The version check comes first, because Adobe's system requirements for each 2.4.x release list the OpenSearch version Adobe supports, and Adobe supports only the listed combinations. Confirm the exact pairing for your release in the Adobe Commerce system requirements before you choose a cluster version.

OpenSearch is licensed under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition, so the search engine itself carries no license fee. Your costs sit in the hosts, storage, backups, patching and the people who run them. The connection is set in Magento's search engine configuration, where you point the store at the OpenSearch host, port, scheme and prefix. No third-party connector is involved, so the settings you document here are the ones your team must keep in sync across environments. Confirm with your Magento version's configuration guide which search engine options and authentication fields it exposes before you write deployment scripts around them.

Treat the OpenSearch cluster as a separate system with its own patch cycle. OpenSearch publishes minor releases about every eight weeks and keeps each version in maintenance for a limited period, so a version that was current at launch will need upgrading within your Magento support window. Plan the credentials, certificates and index prefix naming before the first full reindex, because changing the prefix later means rebuilding indexes and reconfiguring each environment. Ask your implementation partner to show the exact settings, the test that proves the store reads from the intended index, and the rollback path if a search upgrade breaks catalog results.

What you need before connecting OpenSearch to Magento

Magento Open Source uses OpenSearch as its catalog search engine, so the search host has to be planned alongside the rest of the stack. The cards below cover the platform versions Adobe lists, the network path from the web tier, the dedicated host and the security layer that protects it.

Confirm the 2.4.x line and OpenSearch version

Adobe lists OpenSearch 3 as the required search engine for both 2.4.8-p5 and 2.4.9, so the major version is set by your release. Confirm the exact OpenSearch minor version against Adobe's system requirements for your specific Magento release before you install anything. Adobe supports only the combinations it lists, so a version that works in a test environment may still fall outside support.

System requirements

Match the platform stack to Adobe's list

Adobe's requirements for 2.4.9 name PHP 8.5, MySQL 8.4 or MariaDB 12.3 (recommended) or 11.8, Redis or Valkey 9, RabbitMQ 4.3, Composer 2.10 and nginx 1.30 on Linux x86-64. For 2.4.8-p5 the list includes PHP 8.4 or 8.3, MySQL 8.4 or MariaDB 11.4 or 11.8, and Redis or Valkey 8.1. Check each component against the table for your release, because a mismatch in one layer can block the search work.

Requirements table

Network path from the web tier

Every web node and cron host that reindexes the catalog must reach the OpenSearch endpoint over the network. Decide whether the search cluster sits in the same private subnet as the web tier or behind a controlled route, and confirm that firewall rules allow only the Magento hosts to connect. Test reachability from each web node, not just from one, because multi-node layouts often fail on a single host.

A dedicated search host

Run OpenSearch on its own host or cluster rather than on the Magento web or database servers. Search indexing uses memory and disk I/O that compete with PHP and MySQL, and a separate host lets you size, patch and restore search without a store outage. Ask your team to confirm the host's CPU, memory and storage against the sizing guidance in the OpenSearch documentation for your catalog size.

TLS certificates for the search endpoint

Plan certificates for node-to-node and client traffic before the first connection. Magento must trust the certificate authority that signs the OpenSearch endpoint, so decide who issues the certificates, how they are renewed and where the CA file is stored on each web node. OpenSearch Security provides TLS for node and client traffic, so use it rather than sending catalog queries over plain HTTP.

OpenSearch security docs

Credentials and access roles

Create a dedicated OpenSearch user for Magento with only the index permissions the store needs, and keep its password in your secrets store rather than in plain configuration files. OpenSearch Security supports role-based access control and audit logs, so assign roles that cover index creation, reads and writes for the Magento index prefix. Record who owns this account and when its credentials rotate.

Configuring the OpenSearch connection step by step

This sequence takes a self-hosted Magento Open Source store from a bare OpenSearch host to a verified, indexed catalog that search can query over an authenticated, encrypted connection. Each step ends with a check you can run before moving on.

  1. Confirm the supported OpenSearch version for your release

    Before installing anything, check the system requirements page for your exact Magento Open Source release and patch level, then record the OpenSearch major version it lists. For 2.4.9, Adobe's requirements list OpenSearch 3, and for 2.4.8-p5 they also list OpenSearch 3. Adobe supports only the combinations it lists, so do not substitute a different OpenSearch line because it is newer or already in use elsewhere. Your team or the implementation partner owns this decision and writes it into the build record. It is done when the target OpenSearch version and the Magento release are recorded together and the combination appears in Adobe's table.

  2. Install OpenSearch on a dedicated host

    Install OpenSearch on its own server or virtual machine, separate from the web and database tiers, using one documented method your operations team already runs, such as Docker, Helm, the tarball, RPM, Debian packages or the Ansible playbook. Set the node name, cluster name, data path and heap size in the configuration files, and keep the search host off any public network segment. Only the web tier and administrators should reach its port. It is done when the service starts on every node after a reboot and the cluster responds to a local health request.

  3. Enable TLS for node and client traffic

    Turn on the OpenSearch Security plugin's TLS settings for both transport between nodes and HTTP connections from clients, and issue certificates from the certificate authority your organization trusts. Store the private keys with restrictive file permissions and give the web servers the CA certificate so Magento can verify the server name. Certificate lifetimes, rotation and key storage should be agreed with your security team before go-live. It is done when a request over HTTPS succeeds with certificate verification enabled and a request over plain HTTP is refused.

  4. Create a dedicated Magento user with limited index access

    In the Security plugin, create a role that grants only the index and cluster permissions Magento needs, scoped to the index pattern you plan to use for the catalog, and map a dedicated user to that role. Do not reuse the admin certificate or the built-in administrator account for the store. Store the password in your secrets manager, not in version control. It is done when the Magento user can create and write its own indices and an attempt to read indices outside its pattern returns a permission error.

  5. Set the search engine connection in Magento

    In the Stores configuration under catalog search, or in the environment configuration file for values you keep out of the admin, set the search engine to OpenSearch, then enter the host, port, scheme (https), the dedicated user name and password, and the index prefix. Use a distinct prefix for each store view group if several stores share one cluster. Clear the configuration cache after saving so the new values load. It is done when the store's search settings page reports a successful connection test and the stored values match the record from the earlier steps.

  6. Run a full reindex and check indexer status

    From the command line on a Magento node, run the indexer reindex command for the catalog search indexers, then run the indexer status command to confirm each one reports ready. Watch the Magento and OpenSearch logs for connection or mapping errors during the run. If you use several index prefixes, run the reindex for each store. It is done when every search-related indexer reports a valid status and the log shows no errors for the run.

  7. Verify cluster health and search results

    Query the cluster health endpoint with the Magento user's credentials and confirm the status is green or yellow with the expected number of indices, then confirm the catalog index document count is close to the number of indexed products. On the storefront, search for a known product name, a SKU and a misspelled term, and check the results and the sorting. Repeat the checks on a staging store before production. It is done when the health response, the document count and the storefront results all match what you expect from the test catalog.

  8. Record the configuration and plan the next reindex

    Document the OpenSearch version, host layout, TLS certificate expiry dates, user role, index prefixes and the exact commands used, and store the record with the operations runbook. Set reminders for certificate renewal and for the next Magento and OpenSearch patch review, since both products publish security fixes on their own schedules. Name the person who runs reindexing after catalog changes. It is done when the runbook can be used by someone who did not perform the build to repeat a reindex and a health check.

How storefront search reaches the OpenSearch cluster

The flow starts with a shopper's browser sending a page request to nginx, which passes it to PHP-FPM and the Magento store in the web tier. When the shopper searches, Magento sends the query to the OpenSearch cluster on a separate search host over TLS. Indexers write catalog data to indices that carry each store's prefix. The boundary between the two tiers is where TLS and authentication must be enforced, so check it first when search returns errors or empty results.

Search traffic and indexing cross one trust boundary, secured with TLS and authentication.

Index prefixes and multi-store layouts

A single store on one catalog is the simplest layout. Magento Open Source writes its catalog search indices to the OpenSearch cluster under the index prefix you configure. With one catalog, every store view reads the same product data, so indexing runs as one pipeline. The prefix matters less here, but it still identifies the store's indices if the cluster also hosts other applications.

  • One catalog, one index set: all store views draw from the same product data, so a reindex covers the whole store.
  • Deliberate prefix: choose a prefix that names the store so operators can recognize its indices on a shared host.
  • Language views on one catalog: store views in different languages still share the catalog, but confirm how Adobe's documentation handles language-specific analysis and index names before the build.
  • Scoped credentials: give the store's OpenSearch user access only to its own prefix, so a compromised store cannot read or delete unrelated indices.

Before launch, check the search engine settings in the admin and run a full reindex on a staging copy of the catalog.

How catalog data maps into search indices

This table shows which Magento catalog objects feed the search index, how store scope and index prefixes separate them, and which account owns each index. Read it before you set up a multi-store catalog, because a prefix or scope mistake sends one store's products to another store's search results. Confirm searchable and filterable settings on each attribute in your own store, since Magento attribute configuration controls them.

Magento dataHow it is indexedWhat to verify
Products and simple attributesProduct records and attribute values that Magento marks for search are written to the catalog search index for each store view.Check each attribute's search and filter settings in the admin, then reindex and test a query for a known product.
Categories and category namesCategory position and names feed the catalog index, so category-based listing and filtering depend on the store and root category structure.Confirm each store's root category and that category names are translated for every store view that uses them.
Store views and store scopeEach store view is indexed in its own scope, so product names, prices and attribute values can differ by store view.Test a search in every store view, not only the default one, and confirm the right language analyzer is used.
Index prefix per storeA prefix in the search engine configuration separates index names for each Magento installation or store group that shares one OpenSearch cluster.Use a distinct prefix for each installation or environment, and confirm the prefix in the Magento configuration matches the one in OpenSearch.
Index owner role and userThe Magento connection uses a dedicated OpenSearch user whose role allows writes only to the indices with its prefix, and no cluster-wide administration.Ask your team to confirm that the role cannot read or delete indices belonging to other stores or applications.
Reindexing after changesAttribute setting changes and bulk catalog updates require a reindex so the search index reflects the new mapping and data.Schedule reindexing with your change process and confirm the indexer status after each change.

Securing the search tier with TLS, authentication and roles

OpenSearch holds a copy of your catalog and sits in the request path for shopper search, so its trust boundary matters as much as the store's. The cards below cover the controls that keep the cluster private, encrypted and limited to the access Magento needs.

Keep the cluster off public networks

Place the OpenSearch nodes on a private subnet that only the Magento web and worker tiers can reach, and do not publish port 9200 to the internet or to shopper-facing networks. Shoppers should reach search only through the store's own application layer. Check the security groups or firewall rules from a host outside the store network, because a single permissive rule is the most common way a search cluster ends up exposed.

Required line for 2.4.9
OpenSearch 3

Encrypt node and client traffic with TLS

The OpenSearch Security plugin provides TLS for both node-to-node and client traffic. Enable both so catalog queries and cluster replication are encrypted in transit, and set the Magento connection to verify the server certificate rather than trusting any certificate. Confirm with your certificate authority team how certificates are issued, renewed and rotated before go-live, since an expired certificate will stop search for the storefront.

OpenSearch security docs

Choose an authentication backend

The Security plugin supports SAML, OpenID Connect, Active Directory and LDAP, Kerberos and JSON Web Token backends. Pick the one your identity team already operates for internal services, and confirm that it is supported in the OpenSearch version you deploy. The Magento service account should use a non-interactive credential that is stored in the store's secret handling, not in a shared operator login.

Security plugin docs

Scope the Magento user to its indices

Create a dedicated role that grants read and write access only to the index patterns used by the store, such as the prefixed catalog indices for each store view. Deny cluster-wide administration, snapshot control and access to other applications' indices. With several stores on one cluster, separate roles per store prefix limit the blast radius if one store's credentials leak.

Keep admin credentials out of Magento

Magento administrators should not know or share the cluster admin credentials. Store-side configuration needs only the Magento service user. Cluster administration, certificate changes and role edits should sit with the platform team under their own named accounts, with changes tracked through the audit trail. Ask who can read the Magento environment configuration, because that file holds the search connection secret.

Enable audit logs and review them

The Security plugin's audit logs record authentication events and access to the cluster, which lets you see who queried or changed indices and when. Decide which categories to log, where the logs go, and how long they are kept under your retention policy. Audit logging is only useful if someone reviews failed logins and unexpected admin activity, so assign that review to a named owner before launch.

Common OpenSearch connection failures and fixes

This table lists the failures teams most often hit when Magento Open Source connects to OpenSearch, with the likely cause and the first check or fix for each. Read it while the indexers are failing or search returns nothing, and start with the version row because it is the cheapest to rule out. Confirm exact error text and settings against your own Adobe requirements list and OpenSearch configuration before changing production.

FailureLikely causeCheck or fix
Version mismatch with the 2.4.x lineThe OpenSearch major version is not one listed in the system requirements for the installed Magento 2.4.x release, or the Magento patch was upgraded without its engine requirements.Compare the installed Magento release against Adobe's system requirements page, for example OpenSearch 3 for 2.4.9. Upgrade or align the engine before reindexing.
TLS certificate trust errorsThe certificate presented by the OpenSearch host is not issued by a CA the web and cron nodes trust, the hostname does not match, or the cert has expired.Confirm the certificate chain and subject name match the host Magento connects to. Install the CA bundle on every web and CLI node, then retest the connection from the same user that runs cron.
Authentication rejectedThe username, password or role in the search engine settings does not match the OpenSearch user, or the account lacks index permissions for the store's index prefix.Test credentials directly against the cluster from a Magento node. Grant the user read, write and index-management rights only on the indices this store uses, and rotate secrets through your normal vault process.
Index prefix collision between storesTwo Magento stores or environments share one cluster with the same index prefix, so one store's reindex overwrites or mixes the other's documents.Give each store and each environment (staging, production) a distinct prefix in the search engine configuration. Check index names in the cluster before a full reindex and restrict each store's role to its own prefix.
Empty results after a catalog changeProducts or attribute changes were saved, but the search indexer has not run, the indexer is set to a schedule that has not fired, or the cache still serves old results.Check indexer status in the admin and run the catalog search indexer for the affected scope. After reindexing, flush the Magento cache and verify document counts in OpenSearch against the catalog.
Indexers stuck or timing outLarge catalog updates exceed the request or cluster timeout, the cron consumer is not running, or the cluster is under memory or disk pressure.Check the indexer state and cron health first. Review cluster health, heap and disk, and split large reindex jobs into smaller scopes. Confirm timeout values with your OpenSearch and PHP configuration before raising them.
Search unavailable after a node or certificate changeThe configured host or port changed, or a load balancer or firewall rule now blocks traffic from the web tier to the search host.Verify network reachability from each Magento node to the search host and port. Update the engine host setting on every node that serves storefront or admin requests, then clear the configuration cache.

Reindexing after changes and sizing for large catalogs

A full reindex is needed when the search index no longer matches what Magento Open Source expects to find in OpenSearch. The main triggers are a version upgrade that changes the search engine client or index mappings, a change to the index prefix or the store-to-index mapping, and a restore of the database or search cluster from a backup taken at a different point in time. Incremental indexing covers ordinary catalog work: when a product, category or price is saved, the affected entities are reindexed and pushed to OpenSearch, so routine edits should not require a full rebuild. Confirm with your team which of these changes trigger a full rebuild in the Magento release you run, and write that rule into the change runbook so nobody guesses during a release window.

Freshness depends on the health of the processes that do the work. Indexers in update-on-save mode depend on cron and, where configured, on message queue consumers, so a stopped cron job or a backlogged queue shows up as products that look correct in the admin but are stale on the storefront. Monitor the indexer status and the queue backlog after every deployment, and set an alert for indexers left in an invalid or pending state. Plan the full reindex for a maintenance window on a copy of production first, and record how long it takes so the production window is based on evidence, not assumption.

Sizing depends on several drivers that interact: the number of SKUs and configurable child products, the number and type of searchable and filterable attributes, the number of stores, websites and languages (each language and store view adds index data), the query volume during peak trading, and how many OpenSearch replicas you need for availability and read load. This section gives no capacity figures, because the answer depends on your catalog and traffic. Benchmark on a copy of your real catalog with production-like attributes, languages and query patterns before go-live, measure indexing time and search latency, and size the cluster from those results with your OpenSearch version and hosting plan confirmed.

Questions buyers ask about OpenSearch for Magento

What does it cost to run OpenSearch for a Magento store?

The OpenSearch license costs nothing, because all software in the OpenSearch project is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. The recurring cost is infrastructure and labor. Infrastructure includes the search nodes, their memory and disk, backups, and the network path to the web tier, and it grows with catalog size, number of stores and reindex frequency. Labor covers the initial build, the patching cycle and monitoring. Ask any partner to split a quote into one-time work and recurring work, and to state which cloud or data center resources it assumes.

How long does an OpenSearch integration take, and what drives the duration?

The duration depends mostly on the number of stores and languages that need their own index prefixes, the size of the catalog, and how much of the existing environment is already in place. Work that adds time includes a separate search host with TLS and authentication, validating the supported OpenSearch version against the Magento 2.4.x release you run, load testing reindex and query times, and agreeing on who signs off on access rules. A fixed-scope agreement sets the timeline in writing before work starts, so compare quotes on the same catalog size and store count.

Can our in-house team set up OpenSearch for Magento without a partner?

Yes, if your team already runs Magento and has operated a clustered search service. The hard parts are not the installation itself but the version match with Adobe's system requirements for your release, TLS and authentication on a host that Magento reaches over the network, index prefix planning for several stores, and a reindex and verification routine after catalog or configuration changes. Check the supported combinations for your release in Adobe's system requirements before you commit, and confirm that at least one engineer can own search patching through the OpenSearch release cycle.

What do we need to provide for an OpenSearch integration?

Plan for three inputs. First, read access to the catalog data model, including attributes, store views and expected product volume, so the index design matches how products are searched. Second, a test environment that mirrors production versions of Magento, OpenSearch, PHP and the web tier, so reindexing and search relevance can be checked before cutover. Third, a named security contact who approves network rules between the web tier and the search host, credentials, TLS certificates and the role model for search users. Ask the partner to list these inputs in the written scope.

How do OpenSearch 3 upgrades interact with Magento releases?

Treat the OpenSearch version and the Magento release as one matched pair. Adobe's system requirements list the OpenSearch version supported for each Magento 2.4.x release, and Adobe supports only the listed combinations. OpenSearch ships a new minor version about every eight weeks, and each version stays in maintenance for a defined period, which means you will receive fixes but no new features. Plan each Magento patch cycle to check the paired OpenSearch version, rehearse the upgrade in a test environment, and reindex afterward. Confirm the current support window on the OpenSearch releases page before scheduling.

Can Elasticsearch be used instead of OpenSearch with Magento?

Confirm this against Adobe's current system requirements for your Magento release before you decide, because Adobe lists OpenSearch as the search engine for the versions covered by the supplied requirements. OpenSearch is a fork of open source Elasticsearch 7.10 and is wire-compatible with it, which explains why teams sometimes ask. Any switch changes the client configuration, the supported version pairing and the licensing position, so it belongs in the written scope with a test plan. Ask the partner to show which Adobe-listed version it would use and why.

How DeployOpen scopes and delivers OpenSearch search for Magento

DeployOpen plans, builds, documents and supports the OpenSearch search layer for your Magento Open Source store inside infrastructure you control. Each engagement starts from a written scope that fixes the Magento and OpenSearch versions, the host layout, the store views and the handover deliverables before any build work begins.

How we scope

  • Confirm the Magento Open Source release line and the OpenSearch version that Adobe lists as supported for it.
  • Map store views, catalog size and index prefixes so each store gets its own indices.
  • Record the written scope, deliverables and timeline for the OpenSearch host, TLS and authentication work.

How we build

  • Deploy OpenSearch on a separate host with TLS and authentication enabled for client traffic.
  • Configure the Magento search connection, index prefixes and credentials, then run reindexing and test search per store view.
  • Test relevance, autocomplete and reindex timing on a catalog copy sized close to production.

How we hand over

  • Document the host layout, version pinning, credentials handling, index prefixes and reindex runbook.
  • Provide a sizing record explaining the node, memory and storage assumptions behind the chosen configuration.
  • Walk your operations and security teams through access controls, audit logging and the upgrade path.

How we support

  • Offer ongoing support, OpenSearch and Magento patch upgrades and reindex checks as a retainer.
  • Retest search and access controls after each Magento patch, OpenSearch minor release or catalog change.
  • Keep the version matrix current so your team knows when an OpenSearch line leaves maintenance.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.