Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search results query
This topic contains 2 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 6 months ago.
- AuthorPosts
- July 28, 2017 at 10:56 am #14009
Hi, I’m having issues with my search results.
For example, when customers search paint, I would like the paint products to show up first. When they search windows, I would like the windows to physically show up first, and then the window related products.
Please see this video to see what I mean: https://youtu.be/OWf9BKFgWPo
Is there a solution for this?
Many thanks,
OnurJuly 28, 2017 at 11:15 am #14011Hi,
Another example is our product Acoustic flooring. If you search acoustic flooring, nothing comes up. However, if you search acoustic, it does.
We need this product to appear under a search for acoustic flooring. The category itself is called Acoustic flooring. If it could display the categories that would be great.
Thanks
July 28, 2017 at 2:33 pm #14021Hi Onur,
Thank you for the proper details, it helps me a lot to understand the problem.
I believe there is actually a solution for this. It may not be perfect, but I think it should be better for your expectations. So, what you need, is basically search the product categories related to each product – so the ‘paint’ products within the ‘paint’ category will show up. And also, these should be ordered by these categories by relevance. This is all possible, and I already made the following changes on your back-end:
1. I have configured and enabled the Index table engine – this is very important, as it makes the search much faster, and more precise, and allows better searching for taxonomy terms (product categories).
I will rahter not go into details on how I did it, if you are interested, then you can read more about the index table engine in these documentation chapters: Index table engine documentation & chapters
2. I have increased the ‘terms relevance’ so that if the phrase matches a product category, related to the product, it is moved to a higher position in the results list: https://i.imgur.com/hqwCSqV.png
This means, that the plugin will now prefer results based on the product category names, and will more likely place them at the top positions, if the search phrase matches them. This might not be perfect in every case, but it should do the trick.
If you try ‘paint’ or ‘acoustic flooring’ there is a very high chance that the plugin will return more accurate results.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.