Skip to main contentSkip to footer

Premium 2.4.4 and free 4.3.4 fix couple of long-standing bugs. The process of taking Relevanssi to 100% testing coverage proceeds and going over all the code systematically helped me find and fix a bug that had plagued comment indexing for a long time.

New features

  • Premium only: You can now target specific parts of the post with search terms like {post_tag:cat}, {title:word}, {author:mikko}, {customfield_name:value} and so on. See this Knowledge Base entry for more information.
  • Premium only: Related posts keywords can now be restricted by taxonomy, so tags will only match to tags and not other parts of the post. This may lead to increased precision.
  • You can now give Gutenberg blocks a CSS class relevanssi_noindex to exclude them from being indexed. Relevanssi will not index Gutenberg blocks that have the class.
  • Relevanssi automatically skips some custom fields from common plugins that only contain unnecessary metadata.
  • The search results breakdown is added to the post objects and can be found in $post->relevanssi_hits. The data also includes new fields and the breakdown from the excerpt settings page can now show author, excerpt, custom field and MySQL column hits.
  • Relevanssi can now index Ninja Tables table content. This is something of an experimental feature right now, feedback is welcome.
  • New filter hook relevanssi_indexing_query filters the indexing query and is mostly interesting for debugging reasons.

Bug fixes

  • Deleted and trashed comment contents were not deindexed when the comment was removed. That has been corrected now.
  • Phrase matching is now applied to attachments as well, including the attachments indexed for parent post.
  • Phrase matching only looks at custom fields that are indexed by Relevanssi.
  • Exact match bonus now uses the original query without synonyms added for the exact match check.
  • Paid Memberships Pro filtering is only applied to published posts to prevent drafts from showing up in the search results.
  • Premium only: Indexing internal links for target documents could cause documents to go unindexed. This has now been fixed. If you use internal link indexing, rebuild the index after you update.
  • Premium only: Relevanssi could stop plugin information retrieval for other plugins fail. This has been fixed.

The new versions are available from the plugin repository, from the Download page and through automatic update.

Your account

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

Search

Popular Resources

Different fuzzy search setting on different searches

…for example, “none” when you’re doing an employee/department search. For example, you can set a global variable before the relevanssi_do_query(), like this: global $relevanssi_disable_fuzzy; $relevanssi_disable_fuzzy = true; relevanssi_do_query( $args ); Then use that global variable as a trigger: add_filter( ‘pre_option_relevanssi_fuzzy’, ‘rlv_disable_fuzzy’ ); function rlv_disable_fuzzy( $value ) { global $relevanssi_disable_fuzzy; if…On one of our sites we have 2 search boxes, one where you can do a normal search and the other where you can search for employees or departments. The employees/department search is done by using the relevanssi_do_query() function. Can we use fuzzy matching on the normal search and disable……setting from the relevanssi_fuzzy option. WordPress provides you with pre_option_relevanssi_fuzzy filter you can use to change the value. The values are “always” and “sometimes”, and everything else counts as none. So, set the setting to always from Relevanssi settings, and then add a filter function that sets the value to,…

Controlling attachment types in index

Relevanssi lets you index attachments. But perhaps you only want to index a particular type of attachment? Relevanssi settings don’t have any control over that, it’s either all attachments or nothing. It is possible to choose which kinds of attachments are indexed. It is done with the relevanssi_indexing_restriction filter hook,…

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