Continue reading Premium 2.12 / Free 4.10

Premium 2.12 / Free 4.10

…language to be used when all posts are indexed. Now Relevanssi checks the language from the post it is handling, when posts are indexed. (Premium) There was a problem indexing synonyms for AND searches. New features Relevanssi now supports multilingual synonyms and stopwords. Relevanssi now has a different set of…This version started as a small update to 2.11 and 4.9, but then a customer request made me add a major enough feature to warrant a bigger version number update. The big new feature in this version is multilingual stopwords and synonyms. If you’re using WPML or Polylang and have……your site in multiple languages, you can now have a different set of stopwords and synonyms for each language. If you have a multilingual site, visit the “Stopwords” tab of Relevanssi settings and see that the stopwords are correct. Relevanssi has stopwords for many languages built-in, so you can often…

Read more Premium 2.12 / Free 4.10 0 Comment on Premium 2.12 / Free 4.10
Continue reading Premium 2.11 / Free 4.9

Premium 2.11 / Free 4.9

…(but remember to remove it when the next version is released). Searching for words that end in “s” can cause slightly broken highlighting. The easiest fix for this is to enable the “Expand highlights to cover full words” setting. The “Post exclusion” setting does not work correctly at the moment….…excluded from the index. There’s a new option, “Expand highlights”. Enabling it makes Relevanssi expand partial-word highlights to cover the full word. This is useful when doing partial matching and when using a stemmer. (Premium) Relevanssi can now generate excerpts that show multiple snippets from the post. You can adjust……content to eg. remove unwanted sections. Changed behaviour The “Uncheck this for non-ASCII highlights” option has been removed. Highlights are now done in a slightly different way that should work in all cases, including for example Cyrillic text, thus this option is no longer necessary. (Premium) The index_pdfs WP CLI…

Read more Premium 2.11 / Free 4.9 0 Comment on Premium 2.11 / Free 4.9
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
Continue reading Excluding old content from the search

Excluding old content from the search

Is there a way to exclude anything before 2016 from search results? Yes. There are two approaches to this. If you never want to see anything old in the results, it’s best to filter in indexing with relevanssi_indexing_restriction. Add this to your site: Note that the restriction explains which posts are included in the index,…

Read more Excluding old content from the search 2 Comments on Excluding old content from the search
Continue reading Events Calendar: Remove past events from search

Events Calendar: Remove past events from search

If you have events on your site, you might not want to show the past events in the search. This is easy to do with Relevanssi. It can be done in two ways: either you block the past events in indexing or in searching. In most cases, the best solution is to do both. Blocking…

Read more Events Calendar: Remove past events from search 6 Comments on Events Calendar: Remove past events from search
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 Excluding protected posts

Excluding protected posts

A site I’m working with has a handful of “protected” posts (password required to view). For various reasons, we don’t want to show these in search results. While there is no excerpt shown, I’d prefer for people to not even know they exist. Relevanssi sees protected posts as public posts……(because their post status is publish, not private like with private posts). That’s what they are, as, in general, users will be able to see protected posts. Just not their content unless they know the password. Relevanssi does protect the content and won’t show parts of it in excerpts. If……you want to deindex protected posts completely, add this code to your site: add_filter( ‘relevanssi_indexing_restriction’, ‘rlv_exclude_protected’ ); function rlv_exclude_protected( $restriction ) { global $wpdb; $restriction[‘mysql’] .= ” AND post.post_password = ””; $restriction[‘reason’] .= ‘ Has a password’; return $restriction; } Then just rebuild the index. This will prevent Relevanssi from…

Read more Excluding protected posts 14 Comments on Excluding protected posts
Continue reading How to include specific posts

How to include specific posts

Hello, I’m using WooCommerce and Relevanssi and they work great. My Site Search only searches Products, however I want to let certain posts appear in the search results. Is there a way to allow certain posts to be in the results? Yes. There are many ways to do this, and the best way depends on…

Read more How to include specific posts 2 Comments on How to include specific posts