MDVA-37182: inconsistent search results in ElasticSearch 6 and 7

The MDVA-37182 patch fixes the issue with inconsistent search behavior across versions 6 and 7 of ElasticSearch. This patch is available when the Quality Patches Tool (QPT) 1.0.22 is installed. The patch ID is MDVA-37182. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.3.

Affected products and versions

The patch is created for Adobe Commerce version: Adobe Commerce on cloud infrastructure 2.4.1

Compatible with Adobe Commerce versions: Adobe Commerce on-premises and Adobe Commerce on cloud infrastructure 2.4.1-2.4.2

The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.


Inconsistent search behavior.

Steps to reproduce:

  1. Create products with the following details:

    • Names: “5127AC”, “5127SS”, “5127AB”
    • SKUs: “product1”, “product2”, “product3”
  2. Set search engine to ElasticSearch 6 (ES6).

  3. Run full reindex.

  4. On the storefront, search for “5127s”.

  5. Set search engine to ElasticSearch 7 (ES7).

  6. Run full reindex.

  7. On the storefront, search for “5127s”.

Actual result::

ES6: search returns no results.ES7: search returns three products.

Expected result::

Search returns one product for both versions.

Apply the patch

To apply individual patches, use the following links, depending on your Adobe Commerce product:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.