Continue reading Controlling attachment types in index

Controlling attachment types in index

Relevanssi lets you index attachments. But perhaps you only want to index a particular type of attachment? Relevanssi settings don’t have any control over that, it’s either all attachments or nothing. It is possible to choose which kinds of attachments are indexed. It is done with the relevanssi_indexing_restriction filter hook, which lets you control which…

Read more Controlling attachment types in index 16 Comments on Controlling attachment types in index
Continue reading Keyword-based search blocking

Keyword-based search blocking

Update: In Premium 2.15.0 and later versions, you can do spam blocking from Relevanssi settings. Just navigate to the Spam Block tab on Relevanssi settings! If your search logs are full of spam with repeating keywords, you’re being targeted by a spammer. Their goal is to get visibility to their malicious URLs, hoping Google will…

Read more Keyword-based search blocking 11 Comments on Keyword-based search blocking
Continue reading Premium 1.14.9

Premium 1.14.9

I was alerted yesterday that Relevanssi Premium has a XSS vulnerability. If you are using the “Did you mean” feature, it is possible to construct a search query that contains scripts that are automatically run on the page if the “Did you mean” feature runs. See DXWSecurity report on the vulnerability. Version 1.14.9 fixes this…

Read more Premium 1.14.9 0 Comment on Premium 1.14.9
Continue reading Premium 1.14.8

Premium 1.14.8

Relevanssi Premium 1.14.8 includes one major bug fix, few smaller improvements and a new feature. An improved version of the sorting function will not throw notices when Intuitive Custom Post Order plugin is used. New filter: relevanssi_missing_sort_key can be used to adjust the result sorting when using keys that are not present in all posts…

Read more Premium 1.14.8 0 Comment on Premium 1.14.8
Continue reading Restricting the indexing to particular user roles

Restricting the indexing to particular user roles

From the Relevanssi settings, you can only choose whether subscribers are indexed or not. If you need finer control over what user roles are indexed by Relevanssi, you can use the relevanssi_user_index_ok filter hook with the following code. Place it in your theme functions.php: Just adjust the $block_these_roles array to include the roles you want…

Read more Restricting the indexing to particular user roles 0 Comment on Restricting the indexing to particular user roles
Continue reading bbPress: Private Groups support

bbPress: Private Groups support

Private Groups is a plugin that makes bbPress forum groups private. Relevanssi, however, doesn’t understand that privacy and will show those groups in the search results. Relevanssi has means to support this, however, with the help of the relevanssi_post_ok filter. Here’s some code from Mark Wass that makes the private forum posts private in search.…

Read more bbPress: Private Groups support 0 Comment on bbPress: Private Groups support