This version started as a small update to 2.11 and 4.9, but then a customer request made me add a major enough feature to warrant a bigger version number update.
The big new feature in this version is multilingual stopwords and synonyms. If you’re using WPML or Polylang and have your site in multiple languages, you can now have a different set of stopwords and synonyms for each language.
If you have a multilingual site, visit the “Stopwords” tab of Relevanssi settings and see that the stopwords are correct. Relevanssi has stopwords for many languages built-in, so you can often import the stopwords in case they’re missing.
2.12.2 / 4.10.2
- You can now force Relevanssi to be active by setting the query variable
true. Thanks to Jan Willem Oostendorp.
- Relevanssi has been moved from
posts_pre_query. This change doesn’t do much, but increases performance slightly as WordPress needs to do less useless work, as now the default query is no longer run. Thanks to Jan Willem Oostendorp.
- Highlighting didn’t work properly when highlighting something immediately following a HTML tag.
- (Premium) WPML search results that included non-post results caused fatal errors and crashes. This fixes the crashing and makes non-post results work better in both WPML and Polylang.
- (Premium) Pinning could cause warnings when using
fieldsand non-post results.
- (Premium) Importing options broke synonym and stopword settings.
- Improves the Rank Math SEO compatibility to avoid errors in plugin activation.
- You can no longer set the value of minimum word length to less than 1 or higher than 9 from the settings page.
2.12.1 / 4.10.1
- The new multilingual synonyms and stopwords did not work perfectly at first. The language used was determined from the global language, which works fine in the Relevanssi settings, but causes the wrong language to be used when all posts are indexed. Now Relevanssi checks the language from the post it is handling, when posts are indexed.
- (Premium) There was a problem indexing synonyms for AND searches.
- Relevanssi now supports multilingual synonyms and stopwords. Relevanssi now has a different set of synonyms and stopwords for each language. This feature is compatible with WPML and Polylang.
- SEO by Rank Math compatibility is added: posts marked as ‘noindex’ with Rank Math are not indexed by Relevanssi.
- (Premium) New filter hook
relevanssi_sidebar_capabilityadjusts the minimum capability required for seeing the Gutenberg sidebar and the Classic editor metabox. Default value is
manage_options, ie. Editor.
- (Premium) Attachment weren’t affected by
relevanssi_indexing_restrictionfilters when a new attachment was added. Now the filters apply as they should.
- With keyword matching set to ‘whole words’ and the ‘expand highlights’ disabled, words that ended with an ‘s’ weren’t highlighted correctly.
- The ‘Post exclusion’ setting didn’t work correctly. It has been fixed.
- It’s now impossible to set negative weights in searching settings. They did not work as expected anyway.
- (Premium) Contributors could see the Relevanssi Gutenberg sidebar, but it didn’t work. Now the sidebar is only shown by default to Editors and above.
- Relevanssi had an unnecessary index on the
doccolumn in the
wp_relevanssidatabase table. It is now removed to save space. Thanks to Matthew Wang.
- Improved Oxygen Builder support makes sure
ct_builder_shortcodescustom field is always indexed.
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.