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 Restricting Did you mean suggestions to one post type

Restricting Did you mean suggestions to one post type

Sometimes it may be necessary to restrict the Did you mean suggestions Relevanssi serves to just one post type. There’s no option for that, as by default the Relevanssi database the Did you mean suggestions use as a source (this only applies to Premium, that is) doesn’t have any information about the post types the…

Read more Restricting Did you mean suggestions to one post type 0 Comment on Restricting Did you mean suggestions to one post type