Jump to content

Default search.php result, how to add a simple OR / AND logic filter


Recommended Posts

Hi dear, default prestashop search is quite horrible. In some server setup I can't use external search engine like spinx or elastich, in this scenario is quite impossible to have a working search for a store with more than 100 products. The big problem is that there is no simple setup AND/OR logic . If you have a store with similar product, it's impossible to get the one you are searching for in the best result.




Product a:

Name: pippo pluto

Short description: pluto home pluto best 

Product b:

Name: pippo pluto top

Short description: pluto home best


Search for 50%/50% name and short desc :


Query:"pluto top"


will ever get the product a higher score than b also if "top" is not a terms in the product a, beacuse it occurrs 2 time in the product a short description. 


There is a way to force ps tho only show product that meat all the search terms? 






Edited by matteo.lavaggi (see edit history)
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...