Skip to main contentSkip to footer
Some bug fixes and a small feature addition:
  • Scheduled cache truncate wasn’t scheduled properly. It is now.
  • Added support for ‘author’ query variable.
  • Fixed a bug with indexing custom post types.

Your account

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

Search

Popular Resources

Adding extra weight to AND results in an OR search

…the relevanssi_match filter hook: add_filter( ‘relevanssi_match’, ‘rlv_and_boost’ ); function rlv_and_boost( $match ) { global $rlv_and_database; $multi_term_boost = 5; if ( ! isset( $rlv_and_database[ $match->doc ] ) ) { $rlv_and_database[ $match->doc ] = true; } else { $match->weight *= $multi_term_boost; } return $match; } With this function in place, posts that……*= $multi_term_boost; } return $match; } With this function in place, posts that match more than one search term will get a bonus. The more search terms the post matches, the bigger the bonus. You can adjust the boost factor until you get results you like. This was asked here….

Visual Composer: Indexing headings

Relevanssi doesn’t by default index the headings in Visual Composer. The vcex_heading shortcode Visual Composer for the headings stores the heading text inside a shortcode attribute. By default, Relevanssi does not index shortcode attributes. In this case, indexing the shortcode attribute is necessary. Fortunately, it’s easy to fix with a…

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