MDVA-28993: Implements the "Minimum should match" functionality and partial search for Elasticsearch…
Implements the "Minimum should match" functionality and partial search for Elasticsearch engine. Quality patch MDVA-28993 for magento/framework applies to Magento Open Source and Adobe Commerce 2.3.4 to 2.3.7-p4.
- Categories
- Catalog Search
- Components
- magento/framework, magento/module-catalog-graph-ql, magento/module-catalog-search, magento/module-elasticsearch, magento/module-elasticsearch-6
- Origin
- adobe-commerce-support
No Adobe documentation page exists for this patch.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-28993. On Cloud, add MDVA-28993 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-28993/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-base >=2.3.4 <2.3.6
- Patch file
- patches/os/MDVA-28993_2.3.4.patch
- vendor/magento/module-catalog-graph-ql/etc/search_request.xml
- vendor/magento/module-catalog-search/etc/search_request.xml
- vendor/magento/module-elasticsearch/Model/Adapter/FieldsMappingPreprocessorInterface.php (added)
- vendor/magento/module-elasticsearch/Model/Config/Backend/MinimumShouldMatch.php (added)
- vendor/magento/module-elasticsearch/SearchAdapter/Query/Builder/Match.php
- vendor/magento/module-elasticsearch/etc/adminhtml/system.xml
- vendor/magento/module-elasticsearch/etc/config.xml
- vendor/magento/module-elasticsearch-6/Model/Adapter/FieldMapper/AddDefaultSearchField.php (added)
- vendor/magento/module-elasticsearch-6/Model/Adapter/FieldMapper/CopySearchableFieldsToSearchField.php (added)
- vendor/magento/module-elasticsearch-6/Model/Client/Elasticsearch.php
- vendor/magento/module-elasticsearch-6/etc/adminhtml/system.xml
- vendor/magento/module-elasticsearch-6/etc/config.xml
- vendor/magento/module-elasticsearch-6/etc/di.xml
- vendor/magento/framework/Search/etc/requests.xsd
magento/magento2-base >=2.3.6 <2.4.0
- Patch file
- patches/os/MDVA-42247_2.3.6-p1.patch
- vendor/magento/module-catalog-graph-ql/etc/search_request.xml
- vendor/magento/module-catalog-search/etc/search_request.xml
- vendor/magento/module-elasticsearch/Model/Adapter/FieldsMappingPreprocessorInterface.php (added)
- vendor/magento/module-elasticsearch/Model/Config/Backend/MinimumShouldMatch.php (added)
- vendor/magento/module-elasticsearch/SearchAdapter/Query/Builder/Match.php
- vendor/magento/module-elasticsearch/etc/adminhtml/system.xml
- vendor/magento/module-elasticsearch/etc/config.xml
- vendor/magento/module-elasticsearch-6/Model/Adapter/FieldMapper/AddDefaultSearchField.php (added)
- vendor/magento/module-elasticsearch-6/Model/Adapter/FieldMapper/CopySearchableFieldsToSearchField.php (added)
- vendor/magento/module-elasticsearch-6/Model/Client/Elasticsearch.php
- vendor/magento/module-elasticsearch-6/etc/adminhtml/system.xml
- vendor/magento/module-elasticsearch-6/etc/config.xml
- vendor/magento/module-elasticsearch-6/etc/di.xml
- vendor/magento/framework/Search/etc/requests.xsd
