Question

In my store I've set the search type to "Combined" and I'm looking for the exact name that I use for my products.

The problem is that some articles use spaces, others use the "-" sign and the rest is written without any spaces or special signs.

How can I set it up so that for example:

My product name is KNG-HF2000

My search input could be KNGHF2000 or KNG-HF2000 or KNG HF2000

And the tricky part is, I only want that product to be the result for all search inputs.

Is there some way to configure that without having to change all my product names?


I was looking at this.

But there has to be some sort of rewrite function to strip the name en search input of spaces and special signs, so u can compare them stripped results?

Was it helpful?

Solution

I guess in this case there are 2 ways to go about.

Either use the Search Terms in the backend under Catalog where you can add variations on the product name or look into using Solr.

Solr will make variations on the search term for you. Of course you could build something like that yourself in Magento overwriting the core search functionality but it will potentially be quite heavy on your server

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top