Skip to main contentSkip to footer
Relevanssi Premium 1.7.7 fixes a major bug and adds a couple of neat new features. It is a recommended update and a mandatory update, if you use the “hide this post from index” checkbox feature.
  • Fixed a major bug that can make indexing fail when the user has manually chosen to hide posts from the index.
  • Removed default values from text columns in the database.
  • Relevanssi will now index pending and future posts. These posts are only shown in the admin search.
  • Using multiple taxonomies in search will now use OR logic between term within the same taxonomy and AND logic between different taxonomies. Thanks to Jonathan Liuti.
  • Added a shortcode ‘noindex’ that can be used to prevent parts of posts being indexed. In order to use the shortcode, you must enable expanding shortcodes in indexing.

The noindex shortcode does nothing outside indexing. When a post with the shortcode is indexed, all content inside the shortcode disappears before the post is indexed. In order for the feature work, you need to enable the shortcode expansion.

The logic when using multiple taxonomies is now clearer. There’s OR logic between terms in the same taxonomy and AND logic between different taxonomies. Sounds complicated? Here’s an example from Jonathan Liuti, who refined the logic:

http://www.example.com/?s=term&taxonomy=country|country|topic|topic&term=Finland|Belgium|crisis|war

This search would return all posts that fulfill all these conditions

  • include the word “term”
  • have taxonomy country set to Finland OR Belgium OR both
  • have taxonomy topic set to crisis OR war OR both

Hopefully this is the logic most people expect from the search; at least to me it makes lots of sense.

Your account

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

Search

Popular Resources

Relevanssi and languages

Relevanssi is language-agnostic in itself. It does not know any language and doesn’t care about which language the site uses. However, there are a few things that you need to consider when using Relevanssi in languages other than English. Characters: use UTF8 As long as your site uses UTF8 characters,……mean” suggestions in Relevanssi Premium only support Latin characters. The way these suggestions work is that when Relevanssi searches, Relevanssi then modifies the search term in different ways by adding or removing letters in it. Relevanssi does these modifications with the Latin alphabet (mainly the English alphabet, with a few…

Restricting Did you mean suggestions to one post type

Sometimes it may be necessary to restrict the Did you mean suggestions Relevanssi serves to just one post type. There’s no option for that, as by default the Relevanssi database the Did you mean suggestions use as a source (this only applies to Premium, that is) doesn’t have any information……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:

11 Comments. Leave new

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