Skip to content

Relevanssi

  • Buy Premium
  • Download
  • Features
  • User manual
  • Knowledge Base
  • Support
  • Contact
Release Notes > Premium 2.15 / Free 4.13
Posted on April 28, 2021November 17, 2021

Premium 2.15 / Free 4.13

by Mikko Saari

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.

Related Posts

Premium 2.14 / Free 4.12

This new version improves Relevanssi excerpt generation, making it faster especially with larger posts. Lots of small bug fixes are also included, making Relevanssi more robust. 2.14.5 / 4.12.5 ...

relevanssi_phrase_synonyms

apply_filters( 'relevanssi_phrase_synonyms', boolean $phrase_synonyms ) Controls how synonyms are handled when they appear inside phrases. Parameters $phrase_synonyms(boolean) If true, synony...

relevanssi_multi_results

apply_filters( 'relevanssi_multi_results', array $results ) Filters the results as post ID => weight pairs from the multisite search. Serves the same purpose as relevanssi_results does for single-s...

relevanssi_phrase_queries

apply_filters( 'relevanssi_phrase_queries', array $queries, string $phrase, string $status ) This filter hook modifies the MySQL queries for matching phrases. This is mostly for internal purposes t...

relevanssi_site_results

apply_filters( 'relevanssi_site_results', array $results, int $blog_id ) Filters the results Relevanssi finds for a single site in a multisite search. Parameters $results(array) An array of p...

relevanssi_phrase

apply_filters( 'relevanssi_phrase', string $phrase ) Filters each phrase before it's passed through esc_sql() and added in the MySQL query. Before this filter runs, all quotes and apostrophes in th...

Categories: Release Notes
Tags: relevanssi_get_post_meta_for_all_posts, relevanssi_missing_terms_must_have, relevanssi_missing_terms_tag, relevanssi_missing_terms_template, relevanssi_multi_results, relevanssi_phrase, relevanssi_phrase_synonyms, relevanssi_post_author, relevanssi_site_results, relevanssi_strip_tags

Leave a Reply Cancel reply

Are you a Relevanssi Premium customer looking for support? Please use the Premium support form.

Your email address will not be published. Required fields are marked *

Buy Premium

Buy now »

(for other license options, see here)

License status

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




Search

Recent Posts

  • FileBird: Filtering attachments by folder
  • Polylang: Bilingual search
  • ACF: Indexing files from File fields
  • Index only short numbers
  • Premium 2.20 / Free 4.18
  • ACF: Filtering custom fields by type
  • Ajax Load More
  • Indexing WPML synced posts
  • Automatic redirects to category archives
  • Indexing fails? Check max_allowed_packet!
  • Jetpack Protect and Relevanssi Premium vulnerabilities
  • Reading wpDataTables imported tables
  • Indexing Polylang Pro synced posts
  • 10Web Photo Gallery
  • Premium 2.19 / Free 4.17

Post navigation

Previous Previous post: Why is a post type excluded from search?
Next Next post: Spam search blocking

Relevanssi

WordPress search done right!

The free version

Relevanssi at WP.org plugin repository
Relevanssi at Github

Relevanssi Light

Relevanssi Light
Relevanssi Light at WP.org plugin repository
Relevanssi Light at Github

Relevanssi Live Ajax Search

Relevanssi Live Ajax Search
Relevanssi Live Ajax Search at WP.org plugin repository
Relevanssi Live Ajax Search at Github

Responsibility

We take corporate responsibility and our environmental impact seriously. Read our responsibility statement.

Code from Finland
  • Github
  • WordPress.org
Copyright 2022 Mikko Saari and Painava sana oy. Privacy policy. Cookie declaration.