Skip to main contentSkip to footer

These versions add lots of new features. Premium users get a spam block feature that will help you prevent spam queries, there’s a new Google-style “missing words” feature in OR searches that shows which words are not included in each result. Multisite searching has been refactored and improved a lot, and it has couple of new filter hooks, too.

Since this is a fairly big update, it is recommend to run the update first on a staging site to see how things work before updating a big production site, especially if you are using the multisite search.

2.15.2

  • Premium: Spam blocking can be used to block bots from accessing your search results pages; the new filter hook relevanssi_bots_to_block can be used to adjust the list of bots.
  • Premium: Spam blocking now works with pretty search page URLs and not just with ?s= URLs. You can use the new filter hook relevanssi_search_url_prefix to adjust the prefix in case it’s not /search/. Spam blocking is also extended to page views with spam content in the highlight parameter.
  • Premium: The MySQL column detail information has been missing from the index.
  • Adds support for Avada Live Search.
  • Adds support for Fibo Search.
  • The filter hook relevanssi_indexing_terms that appeared in post type archive indexing is renamed to relevanssi_indexing_tokens what it should’ve been to begin with.
  • Elementor library searches are not broken anymore when Relevanssi is enabled in admin.
  • Relevanssi now understands array-style post_type[] parameters.
  • Relevanssi now automatically considers the Turkish ‘ı’ the same as ‘i’.

2.15.1

  • Premium: Fixes the problem with broken block editor Relevanssi controls.
  • Premium: Improves the Missing words functionality combined with the Snowball Stemmer. Make sure you update Snowball Stemmer to version 1.3, too.
  • Adds support for WP-Members plugin.
  • Improves Oxygen Builder compatibility.

New features

  • Relevanssi can now add Google-style missing term lists to the search results. You can either use the %missing% tag in the search results breakdown settings, or you can create your own code: the missing terms are also in $post->missing_terms. Relevanssi Premium will also add ‘Must have’ links when there’s just one missing term.
  • New filter hook relevanssi_missing_terms_tag controls which tag is used to wrap the missing terms.
  • New filter hook relevanssi_missing_terms_template can be used to filter the template used to display the missing terms.
  • Premium: New filter hook relevanssi_missing_terms_must_have filters the ‘Must have’ part of the missing terms element.
  • New filter hook relevanssi_phrase filters each phrase before it’s used in the MySQL query.
  • Premium: New filter hook relevanssi_multi_results, which is the same as relevanssi_results, but is applied to multisite results, so instead of a post ID, it has blog ID|post ID in the keys and as usual the post weight in the value.
  • Premium: New filter hook relevanssi_site_results, which is the same as relevanssi_results, but only applied in single site results in multisite searching (ie. the filter is applied once for each subsite included in the results).
  • New filter hook relevanssi_post_author lets you filter the post author display_name before it is indexed.
  • New function relevanssi_get_post_meta_for_all_posts() can be used to fetch particular meta field for a number of posts with just one query.
  • Premium: Relevanssi Premium now has a keyword-based spam blocking feature to stop spam searches as soon as possible.
  • Premium: The fields parameter can be set to id=>type, which returns post ID and the post type (post, user, taxonomy term), providing support for non-post results. This only works when using relevanssi_do_query() to run the query.

Changed behaviour

  • relevanssi_strip_tags() used to add spaces between HTML tags before stripping them. It no longer does that, but instead adds a space after specific list of tags (p, br, h1-h6, div, blockquote, hr, li, img) to avoid words being stuck to each other in excerpts.
  • Relevanssi now indexes the contents of Oxygen Builder PHP & HTML code blocks.
  • Relevanssi now handles synonyms inside phrases differently. If the new filter hook relevanssi_phrase_synonyms returns true (default value), synonyms create a new phrase (with synonym dog=hound, phrase "dog biscuits" becomes "dog biscuits" "hound biscuits"). If the value is false, synonyms inside phrases are ignored.
  • Premium: Multisite searching code has been refactored, and at the same time new features have been added. It is now possible to use date parameters and synonyms in multisite searching.

Minor fixes

  • Premium: Attachments that cause the reading server run out of memory are now labeled with the “File size too large error”.
  • Premium: Multisite searches were not logged. Now they are.
  • Warnings when creating excerpts with search terms that contain a slash were removed.
  • Better Ninja Tables compatibility to avoid problems with lightbox images.
  • Premium: Trying to open the Relevanssi sidebar in Gutenberg when a post type did not support custom fields caused a crash. Now the sidebar is simply disabled if the post type does not support custom fields.
  • Relevanssi did not work well in the Media Library grid view. Relevanssi is now blocked there. If you need Relevanssi in Media Library searches, use the list view.
  • Relevanssi excerpt creation didn’t work correctly when numerical search terms were used.

You can get the new version from the Download page. Both versions are available through automatic updates, and you can get the free version from the plugin repository.

Your account

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

Search

Popular Resources

Indexing image captions for the posts

…can index it. The image captions for the images in the Media library is stored in the post excerpt, so what needs to be done is to fetch the post excerpts and include them. The actual filter is straightforward: add_filter( ‘relevanssi_content_to_index’, ‘rlv_add_attachment_excerpts’, 10, 2 ); /** * Indexes attachment excerpts……If you want to index the image captions for the posts where the images are used, that’s easy if the captions appear on the page: Relevanssi will index those captions as well as the other text from the post. However, if the captions don’t appear on the page, you need……extra steps in order to read in the captions. The trick is to add an indexing filter on the relevanssi_content_to_index filter hook that will find all the attachments for a post, fetch the desired data out of the attachments and add that data to the parent post content so Relevanssi…

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