Relevanssi stores the relevance score it uses to sort results in the
$post variable. Just add something like
<?php echo "Score: $post->relevance_score"; ?>
to your search results template to display the relevance score.
Relevanssi Live Ajax Search
Relevanssi Live Ajax Search is a plugin that adds a live search. The plugin is easy to use: install and activate, and you're ready! The plugin can take over most search forms automatically. Releva...
Premium 2.15 / Free 4.13
These versions add lots of new features. Premium users get a spam block feature that will help you prevent spam queries, there's a new Google-style "missing words" feature in OR searches that shows wh...
Installing Relevanssi and adjusting the settings
Installing Relevanssi is simple. For free version, install the latest version of the plugin from WordPress.org plugin repository. For Premium, download the latest version from Relevanssi.com and...
Premium 2.16 / Free 4.14
Relevanssi Premium 2.16.0 is a major release that adds new, exciting features. The most interesting new tool is click tracking, which grants you extra insight into what the search users are doing. Som...
The free version of Relevanssi got a long-delayed update, and it turned out to be a significant update, probably the biggest ever in the history of Relevanssi. Just look at the changelog. Most of thes...
Related posts are a popular feature, as it keeps the users engaged and offers them a new direction to continue to within your site, keeping the users on your site for a longer time. Many plugins do...
4 comments How to display relevancy score
What if $post->relevance_score is blank or does not exist?
var_dump($post) does not show that field
Yes: are you sure Relevanssi is active? Because if Relevanssi processes posts, that field will be there.
We’re testing this plugin for use on our site and seems to be working great. HOWEVER. we’ve tested the results and it seems that if the search term is matched in the content 1 or 1000 times it still ranks it with the same weight?
if this is the case how can we change this so that it would rank a page higher if it has 5 hits for that term over 1?
We’re only really searching on page title and content, we’re not using tags or categories, so we really need to use the number of times the search term is in the content to help pull more relevant results up the results page.
thanks in advance.
`Scratch that. Seems to be working as i want it to. great stuff.