Skip to main contentSkip to footer

These versions collect all the bug fixes and small improvements that I ran into during the summer. Next up is Premium 2.16, which will add bigger new features: at the moment I’m looking at developing proximity sorting (ie. show results that are nearest based on coordinates) and better search tracking. These will take some time to develop, though, so I wanted these smaller improvements out first.

New features

Changed behaviour

  • Premium. The spam block now returns a 410 Gone status code for blocked pages.
  • Premium. The minimum capability for seeing the Gutenberg sidebar or the Relevanssi meta box is changed from manage_options to edit_others_posts in order to allow editors see the sidebar and the meta box. If you prefer the original way, use the relevanssi_sidebar_capability filter hook to adjust.

Minor fixes

  • Relevanssi removes HTML comments better from the post content.
  • Sometimes the Did you mean would return really weird long suggestions from the search logs. That won’t happen anymore.
  • Oxygen compatibility has been improved. Rich text fields and updating posts when they are saved in Oxygen now work better, and revisions are no longer indexed.
  • Improved tax_query handling in fringe cases with multiple AND clauses joined together with OR.
  • Premium. It’s now possible to override global multisite search settings from the searchblogs query variable.
  • Searching without a search term works much better now, you get more posts in the results (default value is up to 500).

Your account

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

Search

Popular Resources

ACF: Indexing File field title

I use the ACF field type File for a download section, but the displayed file title is not indexing. The format I return the ACF field data is “File Array (array)”. For Relevanssi, it doesn’t matter which ACF return format you choose. Relevanssi doesn’t use get_field() but instead uses the……plain get_post_meta(). That always returns the post ID for File fields. To index the file title, you need to explain what you want using the relevanssi_custom_field_value filter hook. If you wish to the file title, this does the trick: add_filter( ‘relevanssi_custom_field_value’, ‘rlv_file_name’, 10, 2 ); function rlv_file_name( $values, $field )…

Indexing HTML comments
By default, Relevanssi does not index HTML comments inside your posts. Relevanssi removes all HTML tags before indexing, and HTML…
Indexing with a cron job

…directory. If they’re not, adjust the path to wp-blog-header.php so that it points to the right place. Now to start indexing, have the cron job visit the relevanssi-start-indexing.php – this will start the indexing and will index 100 posts. Then have the cron job visit relevanssi-continue-indexing.php as many times as……your posts and server. Removing automatic indexing If you index with a cron job, you may want to disable automatic indexing. You can do it by adding this to your site: remove_action( ‘wp_insert_post’, ‘relevanssi_insert_edit’, 99 ); remove_action( ‘wp_after_insert_post’, ‘relevanssi_insert_edit’, 99 ); // Relevanssi 4.17 / Premium 2.19 onwards. This was……this happen in practice, you need two files. First, create a file relevanssi-start-indexing.php with this content: <?php require ‘wp-blog-header.php’; relevanssi_build_index( false, false, 100 ); and then a file relevanssi-continue-indexing.php with this content: <?php require ‘wp-blog-header.php’; relevanssi_build_index( true, false, 100 ); This assumes the files are in your WP installation root…

Related Posts:

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