Plugin Author
ILLID
(@mihail-barinov)
@alexdrone
As I understand your problem is that in the search results list you see products without the word Motorcycle higher in the search results than the product that has this word. What you can do here is to add more relevance for words inside the product title. You can do this by using following code snippet:
add_filter( 'aws_relevance_scores', 'my_aws_relevance_scores' );
function my_aws_relevance_scores( $relevance_array ) {
$relevance_array['title'] = 1000;
return $relevance_array;
}
Looks like I found the solution for you. Please use following code snippet
You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.
Also, after adding this code you will need to go to the plugin settings page and click the ‘Clear cache’ button.
@bamhost
Can you please give me some examples of search queries that have this problem? Even better if you can give me a link to the page with a working search form so I can test those search queries.
Unfortunately even after applying this code into our functions.php the results is pretty much the same. The words I am typing in the search box are literally removed from the actual search and I am not seeing products containing the words. I feel like the numbers I am adding at the end are confusing the search. As when I do not add them it looks like working. But the numbers are actually important and I do not understand why when I add them what I am typing in the search box gets replaced and the titles of the products displayed are completely different.
Plugin Author
ILLID
(@mihail-barinov)
So, if we are talking about the search query ‘Motorcycle Beverly 200’ , it works fine with ‘Motorcycle Beverly’ but when adding 200 terms all results are messed up. Is that correct?
Another option to show more relevant search results is to use AND search logic. With this option you will get only search results that have all search words inside product content. More about this feature you can read here.
Yeah I guess you can be right about this. But this is only in the pro version right? Do you guys have a 1-2 days trial version of the pro so we can test it out and see if it works for us? As we really like the speed of the search with your plugin but we are worried about the results as our shop depends on relevant search all the time.
Thanks
Plugin Author
ILLID
(@mihail-barinov)
Yes, it is a pro feature. Sorry, we don’t have any trial, but we offer a 30 days money back guarantee. So if you purchase the plugin and will not be happy with it we will process a full refund for you.
Regards