Skip to main contentSkip to footer

A small change in 1.13.4 broke the multisite search. 1.13.5 fixes that. It only fixes an error message triggered by empty lines in the synonym settings box. Now you can have as many empty lines there as you wish.

Get the new version from the Download page.

Your account

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

Search

Popular Resources

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……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……return $results; } Relevanssi has the basic title and content exact matching built-in. Add this code to your site to boost posts with titles and content that match the search query. If you want to be 100% sure, you can write a relevanssi_hits_filter function that moves the exact matches on…

Related Posts:

Currently there are no related posts available.

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