Jump to content

Search not working prestashop 1.5.6.2


Recommended Posts

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 by goodl1ke (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...