Skip to main contentSkip to footer

Small fixes. I got some bug reports and feature requests, so I implemented them:

  • Added default values to the database columns, this could cause some problems.
  • Indexing could cause problems, because Relevanssi changed the contents of global $post. That’s fixed now.
  • There’s an option to choose the default order of search results, by relevance or by date.
  • Indexing settings have a new option to only index certain post types.

Not a must-have update, but recommended.

Update 15.6.2011: 1.5.6 was broken, 1.5.7 fixes the problem.

Your account

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

Search

Popular Resources

MemberPress Downloads add-on

…need to tell Relevanssi to look for mpdl-file posts instead of attachment posts using the relevanssi_get_attachment_posts_query filter hook. By default, Relevanssi looks for posts with the post type attachment, post status inherit and a suitable MIME type. These all need to be changed, because the Downloads posts have the post……type mdpl-file, status of publish and no MIME type. Add this to your site: add_filter( ‘relevanssi_get_attachment_posts_query’, ‘rlv_mpdl_query’ ); /** * Filters the MySQL query for getting the attachments. * * Finds and replaces the ‘attachment’ post type restriction to look for mpdl-file * posts and also changes the post_status filtering…

Moving the admin search page
Jules Colle came up with a method of moving the Relevanssi admin search page from under the Dashboard heading to…
Wildcard matching

Relevanssi Premium 2.10.2 introduces a new way to search: wildcard matching. Once the wildcard matching is enabled (it is disabled by default), it introduces two new operators: * and ?. Using the wildcard operators The * operator replaces zero or more characters, so searching for w*ess would match “wilderness”, “witness”,……the “Keyword matching” setting is not set to “Whole words” because wildcard matches are not whole-word matches. Enabling wildcard matching In order to enable the wildcard matching, add a filter function that returns true to the relevanssi_wildcard_search filter hook, like this: add_filter( ‘relevanssi_wildcard_search’, ‘__return_true’ ); Add this one-liner to your……“WordPress” and also “wess”. The ? operator matches exactly one character, so searching for gr?y would match “grey” or “gray”, but not “gravy” or “groovy”. These operators only work within words. Searching for *ess or gra? will not have the expected results. The wildcard operators can only be used when…

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