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
Continue reading Changing the number of search results displayed

Changing the number of search results displayed

A standard way to change the number of search results displayed is something like this: Unfortunately, this breaks Relevanssi. Relevanssi hasn’t played nice with posts_per_page in any case, for some reason I don’t really understand — this is legacy code from the original wpSearch plugin. However, from Premium version 1.4.4 and free 2.9.2, you can…

Read more Changing the number of search results displayed 47 Comments on Changing the number of search results displayed
Continue reading Premium 1.4.3

Premium 1.4.3

Another quick bug fix. Fixed the Did you mean -feature, which was broken by the database change. WordPress doesn’t support searching for multiple categories with the cat query variable. There’s now new cats, which can take multiple categories as a comma-separated list. For some reason, WordPress doesn’t take arguments like ?s=term&cat=1,2 but strips the ‘,2’.…

Read more Premium 1.4.3 0 Comment on Premium 1.4.3