Skip to main contentSkip to footer

Relevanssi Premium catches up with the free version with this release. As this version removes many bugs and fixes a vulnerability, it is highly recommended to all users.

  • Relevanssi now automatically treats ‘ß’ as ‘ss’. If your site has ‘ß’ in text, reindexing the database is a good idea.
  • Query variable post_status is now supported.
  • Improvements to excerpts: excerpts with phrases work much better now, and the excerpt creation logic has been improved: the excerpts are now better. The process takes a bit more time, though.
  • Allowing HTML tags in excerpts could lead to those tags being left open. Relevanssi will now try to close open HTML tags in excerpts.
  • Allowed tags were not controlled in comments. They are now.
  • Highlighting in documents didn’t always work; it should be more reliable now.
  • Non-integer values are removed from post__in and post__not_in before processing them.
  • Query variables p and page_id are now supported.
  • Relevanssi now understands date_query variables as well.
  • The original post excerpt is stored in $post->original_excerpt.
  • Taxonomy search works better with term id parameters (for example from wp_category_dropdown).
  • Errors about $wpdb->prepare() missing an argument removed.
  • New functions: relevanssi_the_title() and relevanssi_get_the_title() can be used to display highlighted titles in search results.
  • The old title highlighting method has been disabled, because it caused highlights in wrong places. Now the highlighted title is stored in $post->highlighted_post_title, take it from there or use the Relevanssi title functions to display it.
  • Polylang and WPML support was adjusted to perform better in edge cases.
  • Indexing is faster, thanks to some improved code from Tom Novelli.
  • MySQL injection attack vulnerability removed.
  • The cache feature is now removed. Relevanssi should automatically drop the cache tables.
  • New filter: relevanssi_indexing_data lets you modify the data before it’s indexed.
  • Fix for a bug that sometimes caused multisite hits to come from the wrong site.

Your account

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

Search

Popular Resources

WooCommerce: Hidden products in search

…best way is to unindex the products so that they don’t appear in the index at all. How that is done, depends on the version of WooCommerce and Relevanssi you’re using. Relevanssi 4.0.9 / Premium 2.1.5 and WooCommerce 3 Versions 4.0.9 and 2.1.5 introduced a better way to block excluded……want to block from the search to true. Older Relevanssi versions and WooCommerce 3 WooCommerce 3 uses taxonomy terms to handle visibility. You can create a relevanssi_do_not_index filter function for these: add_filter( ‘relevanssi_do_not_index’, ‘rlv_wc3_hidden_filter’, 10, 2 ); function rlv_wc3_hidden_filter( $block, $post_id ) { if ( has_term( array( ‘exclude-from-catalog’, ‘exclude-from-search’, ‘outofstock’…Relevanssi by default shows out-of-stock and excluded from catalogue WooCommerce products in the search results, but hides those set to excluded from search (before 2.2.2 and 4.1.2 the default behaviour was to show all products). It is quite easy to make Relevanssi not display hidden products in the results. The…

Debugging slow searches
Reasonable expectations for Relevanssi searching speeds are measured in seconds. Relevanssi does not generally return results in milliseconds. On the…
Elementor

…a Query ID in the Elementor settings and then add this to your site: add_action( ‘elementor/query/YOUR_QUERY_ID’, function( $query ) { $query->set( ‘relevanssi’, true ); } ); This will make that specific query use Relevanssi. Using Relevanssi with Elementor Live Results Elementor has a feature for custom Query Filters. These can……be used to connect Relevanssi with the Elementor Live Results and the Elementor Search Widget. First, you need to add this function to your site: function my_relevanssi_results( $query ) { $query->set( ‘relevanssi’, true ); $query->set( ‘orderby’, ‘relevance’ ); } add_action( ‘elementor/query/my_relevanssi_results’, ‘my_relevanssi_results’ ); Then, follow these instructions from Elementor: Assuming…Elementor is a popular page builder. It works rather well with Relevanssi, most of the time. Check for e_search_props If the search results come back empty or are restricted to a specific post type, it’s possible Elementor is restricting them. Elementor can hide the query parameters to a single query…

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