goodl1ke Posted July 8, 2014 Share Posted July 8, 2014 (edited) Hi, Using prestashop 1.5.6.2 search does not work properly. I have 4000 products on the site with reference and combination reference code, some of them found, some not. preference- search -> -> Add missing products to the index - I tried but did not work -> Re-build the entire index. - I tried but did not work Here are two codes reference, and combination reference, but finds no one. Help please. Thanks. Edited July 10, 2014 by goodl1ke (see edit history) Link to comment Share on other sites More sharing options...
PSfever.com Posted July 8, 2014 Share Posted July 8, 2014 Hi, have you tried reuploading the original Search classes and controller files? Link to comment Share on other sites More sharing options...
goodl1ke Posted July 8, 2014 Author Share Posted July 8, 2014 yes but did not work Link to comment Share on other sites More sharing options...
goodl1ke Posted July 9, 2014 Author Share Posted July 9, 2014 please help me to solve the problem.. Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2014 Share Posted July 9, 2014 try with this (im not sure at all if it will work, but it's worth to try)search.php class file, search for find() function and change: ? ' \''.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' Change it to ? ' \'%'.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' Please note that your search might become slower Link to comment Share on other sites More sharing options...
goodl1ke Posted July 9, 2014 Author Share Posted July 9, 2014 I changed but still not working Link to comment Share on other sites More sharing options...
goodl1ke Posted July 9, 2014 Author Share Posted July 9, 2014 Does anyone know? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now