Closed
Description
Preconditions (*)
- Magento 2.3.*.
- Elasticsearch 6+
Also reproducible on 2.4-develop with Elasticsearch7
Steps to reproduce (*)
- Enable Elasticsearch 6+
- Add a product with a long name with a slash / in it.
Example: LSS 3/8"X3/4"X25' EZ-PULL 1/2" INS SWEAT LINESET W/90 END BEND SUCTION LINE INSULATED - Add Search Synonyms with a word belongs to the product name.
Example: center end boot,torpedo boot,horn boot,register boot center end,register boot torpedo - Search in the frontend for that exact product.
Expected result (*)
- Find that particular product without errors.
Actual result (*)
- Error report: {"0":"Warning: preg_match(): Unknown modifier '8' in /vendor/magento/module-search/Model/SynonymAnalyzer.php on line 96","1":"Can you commit to repository a folder dev/tests/static ? #1 preg_match() called at [vendor/magento/module-search/Model/SynonymAnalyzer.php:96]\n#2 Magento\Search\Model\SynonymAnalyzer->findInArray() called at [vendor/magento/module-search/Model/SynonymAnalyzer.php:71]
Additional info
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done