Skip to main contentSkip to footer

Finally, Relevanssi Premium 1.9! This version includes the new file structure, where most of the code has been removed from relevanssi.php and moved to various files in the lib directory. These lib files are common between Relevanssi and Relevanssi Premium, making maintaining the plugin much easier.

All the bug fixes I’ve done for free Relevanssi will be implemented in Premium just by copying the updated lib files from free to Premium. This doesn’t mean much to end-users but simplifies the process for me a lot, which means more bug fixes for you (especially as the larger user base of the free version now helps fix bugs in Premium as well).

My next project is to write a user’s manual for Relevanssi. That might take a while…

  • The default function on relevanssi_post_ok filter is now set to priority 9, instead of 10, so that user functions happen after the default function by default.
  • You can now use the plus operator for Boolean AND in OR queries. Any search term prefixed with + must appear in search results.
  • Fixed warnings for undefined variables.
  • Relevanssi won’t prevent media library searches anymore.
  • Search terms are no longer highlighted in titles on post pages. That caused too many problems.
  • You can now choose to allow HTML tags in excerpts.
  • Jetpack Contact Form shortcode caused problems when indexing. Relevanssi will now simply remove the shortcode before indexing.
  • Phrases are now also recognized in drafts and attachments.
  • Fixed an error message caused by searching for numbers.
  • You can now set post_types to ‘any’.
  • Role-Scoper users: in order to make Relevanssi work with Role-Scoper, replace the Relevanssi helper file in Role-Scoper with this file.
  • Removed an error message about set_time_limit() under safe_mode.
  • Fixed errors caused by / characters in highlighting.
  • Added an alert when user hasn’t selected any post types to index (and default values).
  • Custom field setting ‘visible’ works now.
  • Relevanssi won’t mess media library searches any more.
  • Search terms are no longer highlighted in titles on post pages. That caused too many problems.
  • New filter: relevanssi_didyoumean_query let’s you modify the query for Did you mean? queries
  • New filter: relevanssi_user_searches_capability lets you modify the minimum capability required to see the User searches page.
  • When filtering results with taxonomy=a|b&term=a|b syntax, you can now use more terms per taxonomy, like this: taxonomy=a|b&term=a,b|c,d.

Your account

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

Search

Popular Resources

Using Relevanssi without a search term

…a search term present. This was originally implemented for a restaurant search, where the users can search for restaurants based on search terms, opening hours and price category. The client wished to be able to use the opening hours and price category with and without a search term. The problem……is, Relevanssi doesn’t trigger without a search term. To fix that, you need to use a new filter hook relevanssi_search_ok. Add this code to your site: add_filter( ‘relevanssi_search_ok’, ‘search_trigger’ ); function search_trigger( $search_ok ) { global $wp_query; if ( ! empty( $wp_query->query_vars[ ‘price‘ ] ) ) { $search_ok = true;……} return $search_ok; } This function will trigger Relevanssi, when the query var price appears in the query. Of course, without a search term, Relevanssi will find nothing. So, you need another function attached to relevanssi_hits_filter. It needs to have something like this: add_filter( ‘relevanssi_hits_filter’, ‘rlv_hits_filter’ ); function rlv_hits_filter( $hits…

Infinite Scroll from Jetpack
Jetpack has Infinite Scroll, which is a pretty cool feature, but unfortunately doesn’t work with Relevanssi on search results pages.…

Related Posts:

Comment Section:

13 Comments. Leave new

  • Andreas Kosmatos
    August 30, 2012 6:31 pm

    Hi, can someone please tell me, on some pages, how can I switch from relevansi to wordpress standard search.

    Thx in advance

    Reply
  • Ninos, million posts are not a problem in theory. In practise, you’ll need lots of memory, which may be a problem.

    That error means your database isn’t correctly installed.

    Reply
  • Get this WP Error:
    WordPress database error: [Unknown column ‘user_id’ in ‘field list’]
    INSERT INTO *_relevanssi_log (query, hits, user_id, ip) VALUES (‘test’, 2, 2, ‘***’)

    Is it a bug or not correctly installed? :/

    Reply
  • Think there’s a bug,
    with this new version I do not get results. Have deactivated my created filter:
    add_filter( ‘relevanssi_hits_filter’, ‘relevanssi_hits_filter’ );
    function relevanssi_hits_filter( $data ) {
    …..
    }

    Searched then for normal post_types (post/page), but got nothing.

    Reply
    • Check the value in the “Limit” option. Is it empty? If it is, add something in it and it’ll work.

      Reply
      • jip is working now, thanks. Maybe you should check something like that when updating? Have got a question. How many posts/pages/etc can relevanssi index and search? Is there a limit for?

        Thanks

        Reply
        • That was an unfortunate oversight, yes, but I did send an email about it to all subscribers, so you should’ve received a note warning about it. Also, as far as I can tell, only 16 people downloaded the buggy version.

          There’s no hard limit, it’s only limited by your server capabilities. You should be fine until you have tens of thousands of posts.

          Reply

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