The MDVA-28993 Magento patch implements the "Minimum should match" functionality and partial search for Elasticsearch engine, and solves issues with hyphens in search queries. The patch is available when the Magento Quality Patch (MQP) tool v.1.0.6 is installed.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.3.4
Compatible with Magento versions:
Magento Commerce/ Magento Commerce Cloud 2.3.4-2.3.5-p2
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches status
.
Issue
When using Elasticsearch 6 for searching SKU that contains a hyphen(-), search returns too many results.
Steps to reproduce:
1. Go to the storefront.
2. In the search bar enter a string containing a hyphen, for example "WS-M-Blue".
Expected result:
Returns only WS-M-Blue.
Actual result:
Returns all SKUs starting with "WS".
Patch details
The MDVA-28993 patch contains the following fixes and improvements:
- implements the new "Minimum should match" functionality and partial search for Elasticsearch engine. For configuration details refer to Configuring Catalog Search in Magento User Guide.
- partial search for Elasticsearch
- fixes the "searches with hyphen" issue described above.
Apply the patch
For instructions on how to apply an MQP patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check if patch is available for your Magento issue using Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.