Continue reading Premium 1.5.4

Premium 1.5.4

John Blackbourn sent me another bug fix, this time related to multisite installations. This isn’t a mandatory upgrade, unless you use multisite. It’s now possible to remove matches from the results with the external filter relevanssi_match. If the weight is set to 0, the match will be removed. Multisite installations had problems — installing plugin…

Read more Premium 1.5.4 0 Comment on Premium 1.5.4
Continue reading Premium 1.4.5

Premium 1.4.5

Here’s what Relevanssi Premium 1.4.5 has: New filter: relevanssi_match allows you to weight search results. Similar to cats vs cat, you can now use post_types to restrict the search to multiple post types. Multisite search supports post type restriction. The relevanssi_match filter is a really cool new feature that’ll give you lots of extra power…

Read more Premium 1.4.5 0 Comment on Premium 1.4.5
Continue reading Custom weighing with relevanssi_match and relevanssi_results

Custom weighing with relevanssi_match and relevanssi_results

The relevanssi_match hook lets you modify the matches found for queries. It passes a match object, which has the post id ($match->doc), number of hits found in different parts of the post and the weight assigned to the post ($match->weight). Here’s how Relevanssi calculates the weight: Where $idf is the inverse document frequency, aka the…

Read more Custom weighing with relevanssi_match and relevanssi_results 64 Comments on Custom weighing with relevanssi_match and relevanssi_results