Jump to content

Live Seach content is not relevant


Recommended Posts

Dear Community,

I'm looking for help for my problem. I use prestashop 1.7.2, and when I want to search to any product on my Front-end page, the result is not relevant. For example, if I search to "nokia" on my site, the result in the live search and the result page have other pruducts, not the relevant result (iphone, huawei, and others, but not nokia).

I just tried to rebuild the indexes in the Settings/Search page, and the cache is empty, but the problem is already exists.

Can you take me any advice, please? How can I fix this problem? I'm not a programmer.

Thanks a lot

Link to comment
Share on other sites

Hi Zoltan,

We are also on PS 1.7.2 and had the same problem. 

With help of  tips at https://www.prestashop.com/forums/topic/597944-search-two-or-more-words/?tab=comments#comment-2631092

we modified the file classes/seach.php.  This solved the problem in our site.

Attached the modified search.php file.  Rename the file to search.php and upload to your server.

Best regards,

Peter

PS-1.7.2-modified-for-or_Search.php

Link to comment
Share on other sites

  • 2 years later...

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...