The new versions include a couple of new filter hooks that are not of big interest to most users but may be helpful for specific needs.
The biggest change in this version is how the stopwords page works: now it is possible to remove all stopwords without having the stopword list automatically repopulate from the default stopwords. Now there’s an “Add default stopwords” button that does that. If you are upgrading from an older version of Relevanssi and notice your stopwords missing, clicking the “Add default stopwords” should restore your old stopwords.
- Multisite search can include posts from archived sites in the results.
- Content stopwords aren’t applied to the attachment file content. Fix here.
- 2.6.1 broke WP 4.9 compatibility.
- User Access Manager makes drafts appear in search results. Fix here.
Version 2.6.2 is coming soon with fixes for these issues.
- When using Gutenberg, pinning only works with posts, not with other post types. Version 2.6.1 fixes this so that pinning works in all indexed post types.
- New filter hook
relevanssi_disable_stopwordscan be used to disable stopwords completely. Just add a filter function that returns
- Premium: New filter hook
relevanssi_date_query_non_postscan be used to allow users and taxonomy terms in searches with a date query.
- Premium: The
relevanssi_related_wordsfilter hook didn’t get the post ID as parameter, which severely constricts its usability. That’s now fixed: the filter gets the post ID as the second parameter.
- Stopwords are no longer automatically restored if emptied. It’s now possible to empty the stopword list. If you want to restore the stopwords from the file (or from the database, if you’re upgrading from an earlier version of Premium and find your stopwords missing), just click the button on the stopwords settings page that restores the stopwords.
- Changes to post weights in the
relevanssi_resultshook did not affect the relevance scores shown in excerpts. That’s changed now, and the displayed scores are now taken from the
$doc_weightarray, which is returned in the return value array from
- Mostly Premium: Excerpt length and type are now checked outside the loop that goes through the posts. This reduces the number of database calls, but the most important effect is that now multisite searches will always create the excerpts with the settings of the subsite where the search is made and not with the settings of the subsite of each post.
Minor bug fixes
- Searching for regex special characters (for example parentheses, brackets) caused problems in excerpts.
- Premium. Phrase matching wasn’t applied to PDF content if the “Custom fields to index” setting was set to “some”.
- Premium. Indexing taxonomies from the WP CLI could leave old taxonomy terms in the index. This is now prevented.
- Improvements in handling highlighting for words with apostrophes.
- Disregard hanging commas at the end of post exclusion settings.
- Premium. Relevanssi was blocking post queries in WP CLI. That’s now fixed.
- Sometimes excerpts wouldn’t have an ellipsis in the beginning even though they should.
- Premium. The ‘Add a redirect’ button did not work if there were no redirects.
The download page shows two different versions of the plugin available. The basic version no longer includes tests or anything else you won’t need when actually using the plugin. The developer version includes tests and all sorts of other tooling you may find interesting if you’re a developer.