Reply To: Search results different

#16684
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi Karen,

By default the plugin uses relevance primary and a date secondary ordering. From the screenshot, I believe that the relevances of those items are higher, as in that case the newer articles would appear first by the secondary ordering rules.

I think the best solution would be to change the primary ordering to date descending, as in your case getting the newest records first is likely to be much more relevant matches: https://i.imgur.com/sgUuuGJ.png

With a custom code, it is actually possible to reveal the relevance values, by printing the to the title.
Try adding this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!

This will print two values before the titles in the results list, one is the priority, the other is the relevance: https://i.imgur.com/Nn5nbpz.png
Bit of explanation: The priority is not calculated, it is set to 100 on all results by default, and it can be changed via the priorities submenu. Priority settings are used to change the global ordering of the result, whenever it matches. Elements with the highest priority are always placed to the front of the results list, if matching.
This may help you get a better overview on certain calculated relevance values.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)