Skip to main contentSkip to footer

This is a beta version to precede the next major release, 1.6. This one has mostly all sorts of bug fixes. The new features will arrive in the next beta version. This version isn’t recommended for important sites. Here’s the changelog.

  • Removed some unnecessary filter calls.
  • the_content filters didn’t have any effect on excerpts, now they work as they should.
  • Taxonomy term search didn’t work properly.
  • I’ve moved the “strip invisibles” function after shortcode expansion in indexing and excerpt creation, so objects, embeds and styles created by shortcodes are stripped. Let me know if this causes any problems.
  • Multibyte string functions are not required anymore, Relevanssi will work without, but will cause problems if you try to handle multibyte strings without multibyte functions. (Thanks to John Blackbourn.)
  • Couple of functions Relevanssi uses weren’t namespaced properly. They are now. (Thanks to John Blackbourn.)
  • When $post is being indexed, `$post->indexing_content` is set to `true`. This can be useful for plugin developers and all sorts of custom hacks. (Thanks to John Blackbourn.)
  • User search log now displays the total number of searches. (Thanks to Simon Blackbourn.)
  • Database now has an index on document ID, which should make indexing faster.
  • If you upgrade from 1.5.8 or earlier, emptying the database manually is not necessary.
  • The plugin can now be upgraded automatically. The required API key can be found on Relevanssi.com in the sidebar after you log in.

Quite a list, and I’ve saved the best one last. Next one will be the last version of Relevanssi Premium you need to install manually! I got a tip about a book called Professional WordPress Plugin Development. It’s an excellent book, and it has a nice tutorial on how to set up a private plugin repository. Turns out it’s much easier than I expected.

That’s part of why there needs to be at least two beta versions before 1.6 — I want to check and see if the automatic upgrade mechanism works like it should.

In order to keep non-subscribers from getting free updates, there’s an API key system, but you don’t have to worry about it yet, this version has a hard-coded API key for now (which will be disabled at some point, heh).

Your account

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

Search

Popular Resources

Indexing usermeta fields in Relevanssi

Relevanssi Premium can index user profiles. Users may have meta fields attached to them: there’s a wp_usermeta database table, even though the user editing interface by default doesn’t have any tools to add meta fields to users. Codex includes documentation on how to use the user meta fields. Read Working……with User Metadata for code examples. I’m sure there are also plugins that can help with this. Relevanssi settings page doesn’t contain a setting for indexing user meta fields. There’s, however, a hidden option you can use to index user custom fields. You can either set the option or use…

The search form shortcode

Relevanssi includes a search form shortcode that can be used to display a search form. The shortcode is searchform and it was introduced in Relevanssi Premium 2.0 and Relevanssi 4.0. Adding query parameters This shortcode prints out a basic search form. If you want to add additional query parameters, that’s……return $form; } Add this code to your site. Note this will then apply to all search forms, not just the ones generated by the shortcode. Versions 2.2.4 (Premium) and 4.1.3 (free) added a new filter hook, relevanssi_search_form, which does the same but only applies to the shortcode search form….…easy: just add parameters to the shortcode. Here are some examples: Search for: will restrict the search form to just products. Search for: will restrict the search form to posts, pages and news. Search for: will restrict the search form to categories 10, 14 and 17. Search for: will do…

Ajax Load More

…of the extension, you can make Ajax Load More use Relevanssi by adding this function to your site: add_filter( ‘alm_modify_query_args’, function( $args ) { $args[‘relevanssi’] = true; return $args; } ); This function enables Relevanssi in the Ajax Load More queries. Every time Ajax Load More loads more results, it…Ajax Load More is an infinite scrolling plugin for WordPress. It has a Relevanssi extension, but with the current versions of Ajax Load More (5.5.4.1 as I write this), the extension no longer does anything. The extension relies on a filter hook that does not exist in the plugin. Instead……counts as a new search for Relevanssi logs. If you don’t like that, you can make Relevanssi only log the first Ajax Load More search. If you want that, use these functions instead of the one above: add_filter( ‘alm_modify_query_args’, function( $args ) { global $rlv_is_offset_query; $args[‘relevanssi’] = true; if (…

Related Posts:

Currently there are no related posts available.

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