Continue reading Boosting shorter posts with higher keyword density

Boosting shorter posts with higher keyword density

By default Relevanssi tends to prefer longer posts. The default TF × IDF weights Relevanssi uses simply count the term frequency, ie. how many times a word appears in the post. That prefers longer posts as they usually have the search term appear more often. However, a 500-word post with 15 search term appearances might…

Read more Boosting shorter posts with higher keyword density 0 Comment on Boosting shorter posts with higher keyword density
Continue reading Partial matches to just one custom field

Partial matches to just one custom field

Is it possible to set (with filters and/or actions/functions) Relevanssi to use whole words keyword matching for post titles and 2 custom fields, and partial keyword matching only for a specific custom field (sku in this case)? Indeed it is! That is, you can’t set different keyword matching methods to different parts of the post,…

Read more Partial matches to just one custom field 0 Comment on Partial matches to just one custom field
Continue reading Indexing private custom fields for admins only

Indexing private custom fields for admins only

I use private custom fields. I want to index them in the administration but not on the public site. How to do ? Initially this seems impossible to do with Relevanssi, but it’s possible. Doing this requires Relevanssi Premium. The free version doesn’t know which custom field matches the search term, it just knows some custom…

Read more Indexing private custom fields for admins only 0 Comment on Indexing private custom fields for admins only
Continue reading Free 3.5.5

Free 3.5.5

Relevanssi 3.5.5 is out now and available from the plugin repository. 500 errors caused by arrays in custom fields should be gone now. Improvements to the ACF “select” field support. Relevanssi will not break when frontend plugins insert posts. relevanssi_match filter has a new parameter, which contains the search term. Polylang support has been improved.…

Read more Free 3.5.5 0 Comment on Free 3.5.5
Continue reading Premium 1.14.5

Premium 1.14.5

Relevanssi Premium 1.14.5 is a recommended release, as it fixes significant bugs that caused failures when custom fields contained arrays and when front-end plugins created posts. Multisite users are happy to find out meta_query support has been added to multisite searches and the post type filters work better. Relevanssi had problems with plus signs in…

Read more Premium 1.14.5 1 Comment on Premium 1.14.5
Continue reading Adding extra weight to AND results in an OR search

Adding extra weight to AND results in an OR search

My Relevanssi engine has the AND operator enabled, with a fallback to OR when the search finds no matches. I’d like the search to display first the AND results and later the OR results. For example, if I search for “wedding party”, I’d like the search to show first the entries matching both words and…

Read more Adding extra weight to AND results in an OR search 0 Comment on Adding extra weight to AND results in an OR search
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