Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

magento full text search not working on Live

Tags:

php

magento

Magento full text search not working

I do following steps

full text search option enable from system->configuration->catalogsearch

and

 app/code/core/Mage/CatalogSearch/Model/resources/Fulltext.php

change

 $likeCond = '(' . join(' OR ', $like) . ')';

to

 $likeCond = '(' . join(' AND', $like) . ')';

but still i not able to search fulltext word exactly match.

like image 379
presita parmar Avatar asked Jun 15 '15 08:06

presita parmar


1 Answers

You also need to change

$where .= ($where ? ' OR ' : '') . $likeCond;

to

$where .= ($where ? ' AND ' : '') . $likeCond;
like image 124
Emipro Technologies Pvt. Ltd. Avatar answered Sep 29 '22 21:09

Emipro Technologies Pvt. Ltd.