Skip to main contentSkip to footer

Version 3.5.9 caused a very nasty fatal parse error on some users. This version fixes that, and also several smaller, rare errors. The recent changes in Relevanssi made life complicated for FacetWP users; that is also fixed.

  • Some users got a fatal parse error. That shouldn’t happen anymore.
  • FacetWP users ran into trouble, as relevanssi_do_query() started to explicitly expect a WP_Query object in version 1.15.0. That expectation is removed; it’s still highly recommended for future compatibility that you use WP_Query objects.
  • Small bug fix: get_current_screen() is now only used when it’s available to avoid occasional fatal errors.
  • Error messages from DOING_AJAX being undefined should be removed.

Your account

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

Search

Popular Resources

Relevanssi and languages

…site and rebuild the index: add_filter( ‘relevanssi_stemmer’, ‘relevanssi_simple_english_stemmer’ ); Other languages: Finnish: Simple Finnish stemmer. French: Simple French plural support. German: Simple German stemmer. Korean: Korean postposition stripping. These simple stemmers are not very good, though, so I recommend using a proper Snowball stemmer. It’s available as an add-on plugin……’aáàâậăằảbcdđeẹêệềghiịklmnoóọôộơớợpqrstuụủưựứvxyỹ’; } ); Hebrew add_filter( ‘relevanssi_didyoumean_alphabet’, function() { return ‘אבגדהוזחטיכלמנעפצקרשתםןףךץ’; } ); Stemming and suffix stripping Relevanssi Premium includes a simple English-language stemmer that changes word forms to more basic forms to make the searching less dependent on exact word form. To enable the English stemmer, add this to your……and is slightly harder to set up, but the results are better, and the plugin supports over dozen languages. Get the Snowball Stemmer add-on plugin here. Arabic diacritics You can improve the Relevanssi Arabic support by removing diacritics with this function. Add this to your site: add_filter( ‘relevanssi_remove_punctuation’, ‘rlv_arabic_remap’, 9…

Adding extra boost for exact title matches

…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…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……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