Continue reading Premium 1.9.2

Premium 1.9.2

Turns out 1.9 had a small, but an annoying bug: the auto-update was broken. Unfortunately that’s very hard to notice unless you see it in action, so the problem wasn’t revealed until 1.9.1 was released. Since I had two other fixes in store, I added those as well: Added functions relevanssi_the_tags() and relevanssi_get_the_tags() which can…

Read more Premium 1.9.2 0 Comment on Premium 1.9.2
Continue reading Free 3.0.5

Free 3.0.5

The same bug fix as Premium 1.9.1. Fixed a major bug that caused the searches to fail when “Limit searches” was enabled, but “Limit” was not defined. Modified relevanssi_remove_punct() to replace curly apostrophes and quotes with spaces instead of removing them, to make the index more consistent (regular apostrophes were replaced with spaces). Reindexing the…

Read more Free 3.0.5 0 Comment on Free 3.0.5
Continue reading Premium 1.9

Premium 1.9

…I’ve done for free Relevanssi will be implemented in Premium just by copying the updated lib files from free to Premium. This doesn’t mean much to end-users but simplifies the process for me a lot, which means more bug fixes for you (especially as the larger user base of the……post types to index (and default values). Custom field setting ‘visible’ works now. Relevanssi won’t mess media library searches any more. Search terms are no longer highlighted in titles on post pages. That caused too many problems. New filter: relevanssi_didyoumean_query let’s you modify the query for Did you mean? queries……caused too many problems. New filter: relevanssi_didyoumean_query let’s you modify the query for Did you mean? queries New filter: relevanssi_user_searches_capability lets you modify the minimum capability required to see the User searches page. When filtering results with taxonomy=a|b&term=a|b syntax, you can now use more terms per taxonomy, like this: taxonomy=a|b&term=a,b|c,d….

Read more Premium 1.9 13 Comments on Premium 1.9
Continue reading Search results in random order

Search results in random order

…function ( $query ) { $query->set( ‘orderby’, ‘rand’ ); return $query; } However, both of these solutions only work if all the search results are on the same page. If the results span multiple pages, they will be shuffled between page switches, and the second page can have results from……the first page on it, and some posts may never appear in results. Here’s a more complicated solution that solves the issue by setting the random number generator seed every hour. Searches within that hour will return the results in the same order. This means pagination will work (unless the…Do you want to order your search results in random order? Here’s how: add_filter( ‘relevanssi_hits_filter’, ‘shuffle_search’ ); function shuffle_search( $hits ) { shuffle( $hits[0] ); return $hits; } Add this function to your site and the search results will appear in random order. You can also do this: add_filter( ‘relevanssi_modify_wp_query’,…

Read more Search results in random order 1 Comment on Search results in random order