Continue reading The wrong content gets indexed for a post

The wrong content gets indexed for a post

Sometimes Relevanssi can get confused and indexes the post content under the wrong post ID. The main symptoms for this are: You can confirm this problem by checking the posts involved with the Relevanssi debugger that shows how Relevanssi has indexed the post. If you have this specific problem, you’ll find that the posts either…

Read more The wrong content gets indexed for a post 0 Comment on The wrong content gets indexed for a post
Continue reading Premium 2.29 / Free 4.26

Premium 2.29 / Free 4.26

2.29.0 / 4.26.0 This release includes a security fix to stop a SQL injection vulnerability. With this vulnerability users with at least Contributor role on your site can execute SQL code. The rest of the updates are small bug fixes. Click tracking and pinning work more reliably and synced patterns are handled better.

Read more Premium 2.29 / Free 4.26 0 Comment on Premium 2.29 / Free 4.26
Continue reading Disable in-page highlights on a specific page

Disable in-page highlights on a specific page

Sometimes there’s a need to disable the in-page highlighting on specific pages. Perhaps the feature works fine on most pages, but some pages have content that is broken by the highlighting. In theory, disabling the feature is very simple: remove the relevanssi_highlight_in_docs filter function from the the_content hook for that page. In practise, getting it…

Read more Disable in-page highlights on a specific page 0 Comment on Disable in-page highlights on a specific page
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

Premium 2.27 / Free 4.24

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 0 Comment on Premium 2.27 / Free 4.24