Jump to content

Block Search Keyword Matching Problem


sifo1515

Recommended Posts

Hi Everyone

When i search something ,block search shows similar named product.For example i search"Red Car" but module shows "Red Car, Red Pen, Red ball" Etc.

How can i increase matching rate of product's name.

i want to show %100 the same product name with saerching keywords.İf no product it shouldnt show silimlar.

Best Regards.

Link to comment
Share on other sites

Evren,

You can change the weight in the search options, but if you want to match the exact words, you will have to change how the search engine works. Right now it indexes products based on the words (each single) so it shows all of those that contain "red".

Link to comment
Share on other sites

Hi Evren,

In this case you need to override search function of PretaShop, you can find it in "classes/Search.php" function "find()". They are using "NAME LIKE value"  and you need to change it to "NAME = value". And I think it should works

 

Hope this help!

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