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 SearchWP will first find partial matches and if no partial matches are found it will then seek fuzzy matches.

If you would like to force SearchWP to find fuzzy matches despite having found partial matches, you can use this hook:

// Force SearchWP to perform fuzzy matching when finding partial matches.
add_filter( 'searchwp_partial_matches_force_fuzzy', function( $forced, $args ) {
// $args['engine'] is the engine being used
return true; // true/false
}, 20, 2 );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$forced Boolean

Whether to force fuzzy matching

$args Array

$args['engine'] The engine being used

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