cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 catalog search with apostrophe not working

Magento 2 catalog search with apostrophe not working

When I search brand name like L'Occitane and Geather's the search result does not give me the exact result how can I achieve this ?

2 REPLIES 2

Re: Magento 2 catalog search with apostrophe not working

@akshaykamba454 ,

special characters are removed from the Magento search.

you can update that with your logic by overriding this class

Magento\Framework\DB\Helper\Mysql\Fulltext

vendor/magento/framework/DB/Helper/Mysql/Fulltext.php

 

Re: Magento 2 catalog search with apostrophe not working

How do I override this class in vendor/magento/framework/DB/Helper/Mysql/Fulltext.php to allow an apostrophe?