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