Skip to main contentSkip to footer

Versions 2.30 (Premium) and 4.27 (free) include a bunch of new features and bug fixes. The biggest bug fix is related to multisite searching, where the post weights weren’t calculated correctly before.

There’s also a small security fix related to meta queries using regular expressions, which matters when Relevanssi is used with Relevanssi Live Ajax Search.

  • Premium. New feature: Relevanssi now has a speech-to-text support using the Web Speech API.
  • Premium. New feature: Spam blocking now has a search query length filter that can block too long queries as spam.
  • Premium. New feature: You can now enable automatic search term spelling correction from the settings.
  • New feature: Setting to disable all post_type parameters to let Relevanssi control the post types in the search.
  • New feature: New filter hook relevanssi_truncate_search_queries can be used to truncate search queries to a certain length to eliminate too long queries.
  • New feature: New shortcode  makes it easier to add a “Did you mean” suggestion on a search results page without modifying the template code.
  • New feature: New filter hook relevanssi_allow_meta_query_regexp allows REGEXP or NOT REGEXP meta queries. They are blocked by default for security reasons.
  • Premium. Changed behaviour: Multisite searching is now more in line with the single site search and supports the ‘missing terms’ feature and the + and – operators.
  • Premium. Major fix: The post weights weren’t calculated correctly in multisite searches.
  • Premium. Minor fix: Empty post part targets caused PHP errors. Now they are ignored.
  • Premium. Minor fix: Uninstalling Relevanssi Premium when the free version is active now only uninstalls Premium features.
  • Premium. Minor fix: Spelling corrections work more reliably when the search query involves accents.
  • Minor fix: Relevanssi now clears the scheduled actions on deactivation, not on uninstall.
  • Minor fix: Much faster response for the indexed custom field list.
  • Minor fix: You can now assign anonymous functions to the relevanssi_indexing_restriction filter hook.

Your account

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

Search

Popular Resources

Proximity sorting

Relevanssi Premium 2.16 added proximity sorting to search results. That means you can sort the search results by geographic location. Instead of having the most relevant matches first, you can have the nearest results first. There are many ways to use geolocation in WordPress. The way Relevanssi does this is……a fixed spot or something the search user provides. Relevanssi looks for this in the coordinates query variable and it should have the coordinates in the “latitude, longitude” format. If this is not possible or easy, you can also provide the coordinates with a filter function. Add a filter function…

Indexing attachment file names

…index attachment file names. For attachments, Relevanssi indexes title and description. However, adding the file name to the Relevanssi index is simple using the relevanssi_content_to_index filter hook. Add this function to your site and rebuild the index: add_filter( ‘relevanssi_content_to_index’, ‘rlv_add_filenames’, 10, 2 ); function rlv_add_filenames( $content, $post ) { if…Relevanssi has been working nicely for the normal usecase. But how does one setup indexing of attachment files. When someone searches by a file name or an extension like pdf, there are no results. I have enabled ‘attachment’ at Relevanssi ‘Indexing options’ and still there are no results. Relevanssi doesn’t……( ‘attachment’ === $post->post_type ) { $content .= ‘ ‘ . basename( $post->guid ); } return $content; } Notice that by default Relevanssi replaces periods with spaces, so “sample.pdf” is indexed as “sample pdf”. That should not be a problem, as also in searching “sample.pdf” becomes “sample pdf”. However, if…

Searching Bible verses

…use phrases. Wrapping the verse in quotes is going to result in an exact search that finds exactly what is required. Unfortunately expecting all your users to know that is not reasonable. Most users don’t even know what a phrase search is, let alone that you should use one for…A surprisingly common problem with Relevanssi is Bible verses. All that meaningful punctuation and single digits make exact matching of Bible verses really difficult for Relevanssi, and when searching for Bible verses, exact results are what matters – hitting something similar is generally not very helpful. There’s an easy solution, though:……Bible verses. The fix is simple: add some code that will automatically wrap all the Bible verse in quotes to make it a phrase. Add this to your theme functions.php and enjoy more precise Bible verse searches: add_filter( ‘relevanssi_modify_wp_query’, ‘rlv_bible_verse_handler’ ); function rlv_bible_verse_handler( $query ) { $m = preg_match_all( ‘/(\d?\s?\w+…

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