Continue reading Premium 2.10 / Free 4.8

Premium 2.10 / Free 4.8

After the Summer break, Relevanssi is back with new versions, both to Premium and free. These are mostly small improvements, but when testing the new version, I discovered a bug in the comment indexing that has made Relevanssi not index comments when they are added. I’m not sure why this hasn’t come up in tests…

Read more Premium 2.10 / Free 4.8 0 Comment on Premium 2.10 / Free 4.8
Continue reading Exact matches for short search terms

Exact matches for short search terms

Is is possible to set Relevanssi in a way that it would return only perfect matches for queries up to 3 characters, but any words that starts with the queried term if it has 4 characters or more? – Originally asked here Yes, but it requires a bit of code. Add this to your site and…

Read more Exact matches for short search terms 0 Comment on Exact matches for short search terms
Continue reading Wildcard matching

Wildcard matching

Relevanssi Premium 2.10.2 introduces a new way to search: wildcard matching. Once the wildcard matching is enabled (it is disabled by default), it introduces two new operators: * and ?. Using the wildcard operators The * operator replaces zero or more characters, so searching for w*ess would match “wilderness”, “witness”, “WordPress” and also “wess”. The…

Read more Wildcard matching 2 Comments on Wildcard matching
Continue reading WooCommerce 4.4 problems

WooCommerce 4.4 problems

Updating WooCommerce to version 4.4 breaks Relevanssi searches. After updating WooCommerce to version 4.4, Relevanssi searches no longer find results. This problem is caused by changes in WooCommerce. Those who are interested in the details can go read the GitHub issue I created. For those interested in solving the problem, the next version of Relevanssi…

Read more WooCommerce 4.4 problems 7 Comments on WooCommerce 4.4 problems
Continue reading Relevanssi and languages

Relevanssi and languages

Relevanssi is language-agnostic in itself. It does not know any language and doesn’t care about which language the site uses. However, there are a few things that you need to consider when using Relevanssi in languages other than English. Characters: use UTF8 As long as your site uses UTF8 characters, Relevanssi can handle just about…

Read more Relevanssi and languages 17 Comments on Relevanssi and languages
Continue reading Indexing only attributes from shortcodes

Indexing only attributes from shortcodes

I need to add some custom shortcodes to the list of the “removed” ones (so they don’t show in plain text in the results). However, some of them are built like [shortcode_name text=”Need to keep this in results”] and I would like the content in the text parameter to stay in the results. How do I go about this?…

Read more Indexing only attributes from shortcodes 0 Comment on Indexing only attributes from shortcodes
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 WooCommerce: Return only exact matches for SKU searches

WooCommerce: Return only exact matches for SKU searches

This little filter function works on relevanssi_hits_filter. When a search query is made that matches an SKU (or any other custom field, but SKUs are the most likely scenario here), only results that match the SKU will be returned. For this to work, Relevanssi must be set to index the _sku custom field (because otherwise,…

Read more WooCommerce: Return only exact matches for SKU searches 1 Comment on WooCommerce: Return only exact matches for SKU searches
Continue reading Premium 2.8 / Free 4.7

Premium 2.8 / Free 4.7

These versions add new features, but these are mostly small and of interest to developers. As a big change Relevanssi is now active in Media Library searches in the admin backend (if admin searches are enabled): feedback on this is welcome. Excerpts should be slightly better, especially when content stopwords are involved and post part…

Read more Premium 2.8 / Free 4.7 2 Comments on Premium 2.8 / Free 4.7