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

Automatic redirects to category archives

While Relevanssi Premium can return taxonomy terms as search results, sometimes sending the searcher directly to the category archive is better. This is especially true for WooCommerce sites, where displaying taxonomy terms in search results pages is complicated. Relevanssi Premium has a redirect feature you can use to redirect searches…

OceanWP
OceanWP is a popular WordPress theme. It works fine with Relevanssi, but how it handles excerpts on the search results…

Related Posts:

Currently there are no related posts available.

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