Continue reading Effect of Relevanssi on page speed

Effect of Relevanssi on page speed

A Relevanssi customer asked whether Relevanssi can slow down a site. They have a slow site and their hosting provider had suggested Relevanssi might be the reason, because Relevanssi had a huge table in the site database. That is true – Relevanssi tables can be really big. But they’re not accessed at all except during…

Read more Effect of Relevanssi on page speed 4 Comments on Effect of Relevanssi on page speed
Continue reading Why we don’t offer free trials

Why we don’t offer free trials

Often users would like to get a free trial of Relevanssi Premium, but we always say no. Why is that? The answer is simple. We offer our customers lots of liberties. Providing a temporary trial use is difficult. Relevanssi customers have liberties We don’t believe in spying on our customers or restricting their plugin use.…

Read more Why we don’t offer free trials 0 Comment on Why we don’t offer free trials
Continue reading Debugging with Query Monitor

Debugging with Query Monitor

Query Monitor is by far the best thing for a WordPress developer. It’s billed as the “Developer Tools panel for WordPress”, and that’s a good way to put it. If you’ve ever used the browser developer tools, you know what to expect. Query Monitor is a good way to figure out problems in Relevanssi searches,…

Read more Debugging with Query Monitor 0 Comment on Debugging with Query Monitor
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 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 14 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