Skip to main contentSkip to footer

If you’re getting low-quality results and the weight settings are not affecting the results, the first thing to check is to see if your results are coming from Relevanssi in the first place.

That’s easy to check: disable Relevanssi and see if the results change. If the results change, they’re coming from Relevanssi. If the results don’t change, see this debugging info.

If Relevanssi is powering the search and the results still won’t change when you change the weights (change the weights a lot – for example, if you want to adjust the title weights, set the title weight to 1000), then you may be using a plugin that affects the post order.

One example is Intuitive Custom Post Order, which reorders posts – and the Relevanssi results.

The fix is simple, though. Add this function to your site:

add_filter( 'relevanssi_orderby', function ( $orderby ) {
    return array( 'relevance' => 'desc' );
} );

This will force the search results to order by relevance.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Visual Composer: Indexing headings
Relevanssi doesn’t by default index the headings in Visual Composer. The vcex_heading shortcode Visual Composer for the headings stores the…
WPML: Category exclusions
Relevanssi category exclusion setting doesn’t work properly with WPML. Here’s a bit of code from Srdjan Jocić from OnTheGoSystems that…

Related Posts:

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed