Change the weight for some product titles in search
-
Hi, I am using relevanssi to search a page with a small product catalogue.
I have some products that are combinations of other products.
Title is for example: “2x Product 12-78 TD”
While the basics products title is “Product 12 – 78 TD” (please note the spaces around the dash).
The different spaces are coming through an API so I can’t change it, because it is updated regularly.My problem is: When someone is searching “Product 12-78”, the “2x …” products are shown first, which is technically correct, because the title is exactly matched. Is there a way to downgrade search results with “2x” in the product title through a filter? I went through the filter hooks but couldn’t find it.
The basic product should be first in list.
Thank you for any help!
- The topic ‘Change the weight for some product titles in search’ is closed to new replies.