More than 2 search terms not working.

[ad_1]

There’s no limits to how many search terms you can use.

What are your search settings? Are you using the AND search or the OR search? Partial matching or whole word matching? These matter a lot in this.

Note that Relevanssi doesn’t do inside-word matching, unless you specifically enable that: if you have a word “postsampletosearchfor”, “mple” and “search” will not find this word, while “postsample” and “archfor” will.

I just found out that fuzzy search is disable by default.

The solution is to add the following script (as instructed by the “help” section:

add_filter( ‘relevanssi_fuzzy_query’, ‘rlv_partial_inside_words’ );
function rlv_partial_inside_words( $query ) {
return “(relevanssi.term LIKE ‘%#term#%’)”;
}

Case closed!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer