Skip to main contentSkip to footer

In Finnish, we have this lovely little word “murheenkryyni”. It’s originally an euphemism for body lice – you know, to avoid calling a nasty thing with its real name to avoid inviting it in – but has since taken a wider meaning of something that is a constant source of sorrow.

In Relevanssi, that is the auto-update, which broke again in 1.9. I thought I fixed it 1.9.2, but it turns out half of the fix didn’t quite make it to that release. Thus, 1.9.2.1, which should fix this for good. I’m very sorry it is such a struggle to get it right.

Your account

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

Search

Popular Resources

Yoast Local SEO
Yoast Local SEO plugin breaks Relevanssi search. It enhances the search by adding meta queries. Unfortunately they don’t work with…
Genesis
In some cases, Relevanssi requires modifications to the search result template for the search results to work properly (in particular…
Adding extra boost for exact title matches

…can use this code to give a boost for exact matches in titles and post content: add_filter( ‘relevanssi_results’, ‘rlv_exact_boost’ ); function rlv_exact_boost( $results ) { $query = strtolower( get_search_query() ); foreach ( $results as $post_id => $weight ) { $post = relevanssi_get_post( $post_id ); // Boost cases where query appears…Every now and then, somebody wants to see exact title matches higher in the results. Usually, the best way to do this is to increase the title weight, maybe switch the default operator to AND and let the Relevanssi algorithm lift the best results. If that is not enough, you……in the title if ( stristr( $post->post_title, $query ) !== false ) { $results[ $post_id ] = $weight * 100; } // Boost cases where query is exactly the title if ( strtolower( $post->post_title ) === $query ) { $results[ $post_id ] = $weight * 100; } // Boost query…

Related Posts:

Currently there are no related posts available.

Comment Section:

11 Comments. Leave new

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