Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Priority Settings
This topic contains 9 replies, has 2 voices, and was last updated by James Scaggs 8 years, 2 months ago.
- AuthorPosts
- March 18, 2015 at 12:59 pm #4251
I need to set priority on certain “brands” of my products so that they always show up first in the search results.
I have tried playing with the priority settings, changing sort order for a sample item to 01, and then changing again to 101 but neither seem to have any effect.
All of my products have the brand name in the product so I need to sort brands in this order.
SPX
Waukesha
APV
Alfa Laval
Graco
MurzanFor example if someone searches for “pumps” I need all of the Waukesha pumps to show up before the Alfa Laval pumps.
March 18, 2015 at 1:18 pm #4252Hi!
The preview indicates that some files are missing from the includes directory. (like includes/imagecache.class.php). The ftp connection might have failed during the upload process, or there might have been a tiny server outage.
Please re-install the plugin, that might solve this issue as well.
Also, could you point me to a page where the search is active so I can test the priority settings?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 18, 2015 at 3:50 pm #4258The plugin works on every other feature so I don’t think it was an upload issue.
Please check it on the link here: http://harvillind.staging.wpengine.com/home-3/
March 18, 2015 at 4:09 pm #4260It’s not working for me, the ajax response contains this error message:
Warning: require_once(/nas/wp/www/staging/harvillind/wp-content/plugins/ajax-search-pro//includes/imagecache.class.php): failed to open stream: No such file or directory in /nas/wp/www/staging/harvillind/wp-content/plugins/ajax-search-pro/search.php on line 11
Fatal error: require_once(): Failed opening required ‘/nas/wp/www/staging/harvillind/wp-content/plugins/ajax-search-pro//includes/imagecache.class.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /nas/wp/www/staging/harvillind/wp-content/plugins/ajax-search-pro/search.php on line 11
That means ajax-search-pro/includes/imagecache.class.php is missing. (and possibly other files as well) The search won’t work properly until all the files are there.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 18, 2015 at 4:49 pm #4261I’m sorry it looks like our staging server has some files disabled. It is also on our live site here: http://harvill-ind.com/home-3/
March 18, 2015 at 4:54 pm #4262By the way I also you as admin on the live site now. harvill-ind.com/wp-admin
March 18, 2015 at 4:59 pm #4263Oh, I see the problem now. The cache is not automatically cleared after changing the priorities. I recall disabling that intentionally for some reason. I forgot to add this to the documentation.
If you clear the cache on the Cache Settings submenu after making the changes on with the priorities, the results will appear in the correct order.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 18, 2015 at 5:27 pm #4264That worked. Now my only question is how do I apply the priority so that if a user searches for a term like “pumps” I am showing the pumps in order based on my brands?
Will I just set priority for the first brand highest and it will apply across the board to all searches?
March 18, 2015 at 5:43 pm #4265Yes, the priority is a global thing, it applies to every search instance and every search term.
Results with the same priority are sorted by relevance.
So based on your example, I would set the relevances of products for each brand as following:
SPX – 500
Waukesha – 450
APV – 400
Alfa Laval – 350
Graco – 300
Murzan – 250So there is a 50 point gap between each brands. That 50 point reserve is useful if you want to place some products higher inside a brand. So if you want to push higher a Waukesha product, you can set it’s priority to 451, so it’s top of it’s brand, but the SPX products will still stay higher.
You can use of course bigger numbers with bigger gaps, it will still work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 18, 2015 at 6:03 pm #4266Great thanks a lot. Appreciate the great support. I think I have it from here.
- AuthorPosts
You must be logged in to reply to this topic.