Continue reading Korean postpositions

Korean postpositions

Korean has postpositions, which complicate things for Relevanssi. Fortunately, it’s easy to clean up the most common postpositions from the words. Add this function to your site: After you’ve added this function, rebuild the index. You also need to adjust the minimum word length to 2, as many Korean words are only two characters long.…

Read more Korean postpositions 0 Comment on Korean postpositions
Continue reading German umlauts

German umlauts

By default, the search ignores German umlauts. Searching for “uber” will also find “über” and so on. This ignorance is not a Relevanssi feature but instead governed by your database. The default database collation WordPress uses (utf8mb4_unicode_ci) ignores all accents, including umlauts. If you want the search to care about umlauts, you can change the…

Read more German umlauts 1 Comment on German umlauts
Continue reading Search is ignoring accents

Search is ignoring accents

In general, searches ignore accents, which is generally a good idea: for example in French, the difference between e and é isn’t huge, and it’s fine if the search engine isn’t too picky about which is which. However, there are cases where there is a big difference: for example in Finnish, the letter ä isn’t…

Read more Search is ignoring accents 0 Comment on Search is ignoring accents
Continue reading Relevanssi and languages

Relevanssi and languages

…site and rebuild the index: add_filter( ‘relevanssi_stemmer’, ‘relevanssi_simple_english_stemmer’ ); Other languages: Finnish: Simple Finnish stemmer. French: Simple French plural support. German: Simple German stemmer. Korean: Korean postposition stripping. These simple stemmers are not very good, though, so I recommend using a proper Snowball stemmer. It’s available as an add-on plugin……’aáàâậăằảbcdđeẹêệềghiịklmnoóọôộơớợpqrstuụủưựứvxyỹ’; } ); Hebrew add_filter( ‘relevanssi_didyoumean_alphabet’, function() { return ‘אבגדהוזחטיכלמנעפצקרשתםןףךץ’; } ); Stemming and suffix stripping Relevanssi Premium includes a simple English-language stemmer that changes word forms to more basic forms to make the searching less dependent on exact word form. To enable the English stemmer, add this to your……and is slightly harder to set up, but the results are better, and the plugin supports over dozen languages. Get the Snowball Stemmer add-on plugin here. Arabic diacritics You can improve the Relevanssi Arabic support by removing diacritics with this function. Add this to your site: add_filter( ‘relevanssi_remove_punctuation’, ‘rlv_arabic_remap’, 9…

Read more Relevanssi and languages 17 Comments on Relevanssi and languages
Continue reading Searching Bible verses

Searching Bible verses

A surprisingly common problem with Relevanssi is Bible verses. All that meaningful punctuation and single digits make exact matching of Bible verses really difficult for Relevanssi, and when searching for Bible verses, exact results are what matters – hitting something similar is generally not very helpful. There’s an easy solution, though: use phrases. Wrapping the verse…

Read more Searching Bible verses 1 Comment on Searching Bible verses