Continue reading Premium 1.5.5

Premium 1.5.5

Another day, another version of Premium. Added two new filters: relevanssi_index_titles and relevanssi_index_content. Add a function that returns false to the filters to disable indexing titles and post content respectively. Google Adsense caused double hits to the user search logs. That’s now fixed thanks to Justin Klein. Every now and then people have requested a…

Read more Premium 1.5.5 0 Comment on Premium 1.5.5
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.5.1

Premium 1.5.1

A quick bug-fix, fixing problems with 1.5 and earlier problems uncovered by someone who wanted to use a particularly advanced feature and found out it doesn’t quite work. That happens, particularly with these advanced features that are really cool but which nobody really uses. The result caching system didn’t work properly. It works now. Limiting…

Read more Premium 1.5.1 0 Comment on Premium 1.5.1
Continue reading Taxonomy archive search

Taxonomy archive search

This is a Premium feature and only applies when you index taxonomy terms. This does not apply in free Relevanssi. To include taxonomy pages (categories, tags, custom taxonomies) in the search, enable the option on the options page. There’s also the option to choose which taxonomies are included. By default empty terms (not linked to…

Read more Taxonomy archive search 49 Comments on Taxonomy archive search
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