Note: You are viewing the documentation for Version 3View Version 4 Docs


View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 3.0


View Parameters »

When finding partial matches (specifically when finding fuzzy matches) SearchWP will take an extra step to avoid applying fuzzy logic to terms that are considered too short. If you’d like to customize the minimum length of words SearchWP will consider for fuzzy matching you can use this hook:

// Increase SearchWP's fuzzy match minimum length.
add_filter( 'searchwp_fuzzy_min_length', function( $length ) {
return 4;
} );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$length Integer

Minimum word length for fuzzy matches

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP