Skip to main contentSkip to footer

Version 3.2 is out now, and is more a feature release than a bug fix release. Here’s what’s new:

  • Fixed a bug in the TablePress support.
  • Titles are put through the_title filter before indexing.
  • New filter: relevanssi_join can be used to join tables in the Relevanssi search MySQL queries. Thanks to Ninos Ego.
  • New filter: relevanssi_post_content can be used to modify post content before any Relevanssi processing.
  • New filter: relevanssi_post_content_before_tokenize can be used to modify post content just before it’s tokenized.
  • New filter: relevanssi_indexing_values can be used to modify what Relevanssi stores in the index.
  • New filter: relevanssi_default_meta_query_relation can be used to change the default meta query relation (default value is “AND”).
  • When using a meta_query, relation can be set to OR now.
  • Phrases are now matched to excerpts.
  • Number of queries Relevanssi generates is much, much lower.
  • New filter: relevanssi_didyoumean_url lets you modify the URL generated by the did you mean feature.
  • Better set of Russian stopwords.
  • Relevanssi now highlights search query synonyms as well in documents.

Pretty much all of these new features and fixes come from user requests and bug reports, so if there’s something missing in Relevanssi, just let me know. Especially if it’s something that can be fixed with a filter hook added somewhere.

New WordPress version, 3.8, is coming soon. Relevanssi users can rest easy – this version has been developed on a 3.8-alpha site, and so far everything seems to work just fine.

Your account

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

Search

Popular Resources

WooCommerce: Make Relevanssi notice stock changes

…these functions to your site: add_action( ‘woocommerce_product_set_stock_status’, function( $product_id ) { relevanssi_insert_edit( $product_id ); } ); add_action( ‘woocommerce_variation_set_stock_status’, function( $product_id ) { relevanssi_insert_edit( $product_id ); } ); Now whenever a product stock status changes, Relevanssi is notified and reindexes the post. This will remove the post from the index if…In some cases, WooCommerce product stock level changes don’t affect the search immediately. If the search is set up to exclude out-of-stock items, a product that sells out may still be included in the search until the next reindexing. This happens because changes in the stock status don’t trigger a…

Restricting Did you mean suggestions to one post type

…extra MySQL code to restrict the words fetched to a particular post type. Add this code to your theme functions.php to restrict the Did you mean searches (in Premium only) to the current post type restriction: add_filter(‘relevanssi_get_words_query’, ‘rlv_dym_post_type’); function rlv_dym_post_type($q) { global $wpdb, $wp_query; if (isset($wp_query->query_vars[‘post_type’])) $post_type = $wp_query->query_vars[‘post_type’]; if…

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