Continue reading Debugging slow searches

Debugging slow searches

Reasonable expectations for Relevanssi searching speeds are measured in seconds. Relevanssi does not generally return results in milliseconds. On the other hand, the searches shouldn’t take more than few seconds in most cases. Multisite searches are a different thing: even if the searching is reasonably fast, searching across many sites will always be slow. Doing…

Read more Debugging slow searches 0 Comment on Debugging slow searches
Continue reading Indexing term descriptions for posts

Indexing term descriptions for posts

Sometimes it is helpful to have Relevanssi index the taxonomy term descriptions for posts. For example, the term description can be a good place to add alternate search terms for the term. By default, Relevanssi only indexes the term name, so you need extra code to get the term descriptions. The filter hook relevanssi_content_to_index is…

Read more Indexing term descriptions for posts 0 Comment on Indexing term descriptions for posts
Continue reading Problems with highlighting in post content

Problems with highlighting in post content

Versions 2.27.5 (Premium) and 4.24.4 (free) added extra security to highlighting search terms in post content. Before that, an attacker with contributor access could inject malicious content in the posts and the highlighting would then trigger that. This is now fixed, but the fix comes with a cost: the post content is passed through the…

Read more Problems with highlighting in post content 0 Comment on Problems with highlighting in post content
Continue reading Integrating Post Views Counter stats

Integrating Post Views Counter stats

It’s possible to integrate all kinds of external data to Relevanssi weights. Post Views Counter is an analytics plugin that collects stats about your visitors and stores them in the local database, which means those stats are available for Relevanssi. For some sites, this makes a lot of sense. For example, I have Kirjavinkit, a book review site…

Read more Integrating Post Views Counter stats 0 Comment on Integrating Post Views Counter stats
Continue reading Premium 2.27 / Free 4.24 release notes

Premium 2.27 / Free 4.24 release notes

2.27.7 / 4.24.6 2.27.6 / 4.24.5 2.27.5 / 4.24.4 2.27.4 / 4.24.3 2.27.3 2.27.2 / 4.24.2 4.24.1 2.27.1 If you have already updated to 2.26.1 or 2.27.0, you can either update manually or fix the problem with this little snippet: Adding this snippet to your site will fix the automatic updates in 2.26.1 and 2.27.0,…

Read more Premium 2.27 / Free 4.24 release notes 0 Comment on Premium 2.27 / Free 4.24 release notes
Continue reading Premium 2.26 / Free 4.23 release notes

Premium 2.26 / Free 4.23 release notes

This version includes bug fixes, small quality-of-life improvements, and a small security fix. In earlier versions, Relevanssi included password-protected posts in the search results. This can be used to glean information about the posts’ contents. Since I know some people will still need this functionality, the old behaviour can be enabled with a filter function.…

Read more Premium 2.26 / Free 4.23 release notes 0 Comment on Premium 2.26 / Free 4.23 release notes
Continue reading GeneratePress: Query Loop

GeneratePress: Query Loop

Relevanssi doesn’t work automatically with the Query Loop block in GeneratePress and GenerateBlocks. Fortunately, the solution is simple: the Query Loop block has a filter hook for adjusting the query parameters, and you can use that filter hook to enable Relevanssi. Add this to your site: Thanks to Ben Knowles. If you are using V2…

Read more GeneratePress: Query Loop 0 Comment on GeneratePress: Query Loop
Continue reading Year filter from the search query

Year filter from the search query

A good question was asked in the post Natural-language date queries: Is it possible to extend this so that I can simply add a the year in the search and only results from that year would show? The answer is yes! Add these functions to your site: The code consists of two functions. The first…

Read more Year filter from the search query 0 Comment on Year filter from the search query