Hi Ernest,
I hope you’re doing well! Happy New Year, my friend.
I’ve reached the conclusion that I’m not entirely satisfied with the current order of the search results. Is it possible to sort the results according to number of sales or number of page views? I could not find these options in the “Relevance options” page.
I believe the page view is not counted in any field, but the sales number is tracked in WooCommerce. For that you can use this setup: https://i.imgur.com/wjkuNDJ.png
Thank you for the prompt reply, Ernest! And for providing the requested setup.
Page views would have been the ideal ordering for my situation, it’s a shame it isn’t possible.
If I set it up according to sales number, what will happen if for example none of the search results have sold through the website?
I honestly don’t know. The “total_sales” custom field is set by the Woocommerce plugin. If there were no sales, then that number should be 0, and in that case (and in every case where the numbers are equal) the secondary ordering is used, which you can also set on that same page.