Skip to main contentSkip to footer

Lots of bug fixes and couple of neat new features in this version.

  • Cache truncation was never actually scheduled.
  • Index wasn’t updated properly when post status was switched from public to private.
  • Made the relevanssi_hide_post custom field invisible.
  • Added an option to hide the Relevanssi post controls metabox on edit pages.
  • Fixed a bug that prevents search hit highlighting in multiple blog searches.
  • Added support for ‘order’ and ‘orderby’ in multiple blog searches.
  • Added nonces to various forms to improve plugin security.
  • Added support for ‘author’ query variable.
  • Added support for searches without a search term.
The searches without a search term is a hot new feature. Check out Using Relevanssi without a search term for more details on how that works.

Your account

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

Search

Popular Resources

Indexing product codes with and without spaces

A Relevanssi Premium customer had a problem with product codes. The codes are in the format “ABC 100”, a group of letters and digits with a space in between. Users may search for the codes without the space, so the post should be found with “ABC 100” or “ABC100”. The……$value ); $value .= ” $no_spaces”; } return $value; }, 10, 2 ); This function indexes all SKUs with and without spaces. You don’t have to specify the structure of the SKU: if it’s “ABC 100”, it will be indexed as “ABC 100 ABC100”, and if it’s “PL ENV B……product can be found with either “ABC 123″ or “ABC123″ search * terms. This is applied to post content and titles. * * @param string $content The content to manipulate. * * @return string The content with the spaceless product codes added. */ function rlv_product_codes( $content ) { $pattern =…

WPML: Category exclusions
Relevanssi category exclusion setting doesn’t work properly with WPML. Here’s a bit of code from Srdjan Jocić from OnTheGoSystems that…
Polylang attachment searching

If Polylang is in use and you haven’t enabled “Media translation“, your attachment files won’t have a language. That’s fine, except when Relevanssi searches fail to find your attachment because they’re looking for posts in a specific language. Suppose you want to include attachments in Polylang searches. In that case,……This function hooks onto the relevanssi_where filter hook to modify the Polylang taxonomy query so that the search always includes the attachments. This only works if the query uses no other query variables except the Polylang language query. The results may be unexpected if there are other query filters applied….….= ‘ OR relevanssi.doc IN ( SELECT DISTINCT(ID) FROM ‘ . $wpdb->posts . ‘ WHERE post_type = “attachment” ) OR relevanssi.doc = -1 )’; return $query; } ); This function hooks onto the relevanssi_where filter hook to modify the Polylang taxonomy query so that the search always includes the attachments….

Related Posts:

Currently there are no related posts available.

Comment Section:

9 Comments. Leave new

  • I have moved to premium for the first time and I can’t get it to index more than 31 of 963 posts even though I am using the default settings. The free version was fine and I have basically just given up on the paid version. What a waste of money!

    Reply
  • I noticed a difference on my site as well, not quite as dramatic though. I’ll have to investigate this, I don’t think I changed anything that would affect indexing…

    Reply
  • Went back to 1.7.2
    – posts = 168
    – pages = 76
    – attachments = 254
    – custom post types = 100
    – all = 598 (correct sum)
    – changing from 3 to 4 chars does not change the number of docs in index

    Reply
  • A little bit of experiment:
    – indexing only pages = 65 documents in index
    – indexing only posts = 18 documents (I have over 160)
    – indexing post and pages = 76 documents (so not 18 + 65)
    – changing minimum word length from 4 to 3 in last case = 77 documents
    – indexing only custom post types = 0 documents

    Reply
  • So, what is missing?

    Reply
  • I upgraded from 1.7.2 (latest). Never touched the options, however after seeing the issue I checked all post types and reviewed all options again. I cannot find anything wrong.

    Reply
  • Which version did you upgrade from? Are the indexing options correct?

    Reply
  • One issue: before upgrading I had 599 documents in the index. After the upgrade and reindexing I only have 76…

    Reply

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