Continue reading Relevanssi and languages

Relevanssi and languages

Relevanssi is language agnostic in itself. It does not know any language and doesn’t really care about which language the site uses. However, there are few things that need to be considered when using Relevanssi in languages other than English. Characters: use UTF8 As long as your site uses UTF8 characters, Relevanssi can handle just…

Read more Relevanssi and languages 0 Comment on Relevanssi and languages
Continue reading Allowing decimal numbers

Allowing decimal numbers

Relevanssi by default does not support decimal numbers. The decimal points are handled as punctuation and removed. If you want to keep decimal numbers together and make them available in the search, you can add this code to your theme functions.php: add_filter(’relevanssi_remove_punctuation’, ‘rlv_keep_decimals’, 9); function rlv_keep_decimals($a) { $a = preg_replace(’/(\d)\./’, ‘\1PERIOD’, $a); return $a; }…

Read more Allowing decimal numbers 2 Comments on Allowing decimal numbers
Continue reading Words with ampersands can’t be found

Words with ampersands can’t be found

A lot of people on my site are looking for ‘H&M’. I have an H&M page but it does not show up when searching with Relevanssi. How can I change the plugin so that words with the &-sign get found? Update: Relevanssi versions 2 and above include some punctuation control with an easy to use…

Read more Words with ampersands can’t be found 39 Comments on Words with ampersands can’t be found