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: 1.6


By default SearchWP will consider any result that has a weight greater than zero (as defined by the keyword weights you have defined in the SearchWP settings). If you would like to increase the aggressiveness of the search algorithm by increasing the minimum weight accepted as a result you can add something like the following to your theme’s functions.php:

function my_searchwp_weight_threshold() {
// only accept results with a weight of 10 or more
return 10;
add_filter( 'searchwp_weight_threshold', 'my_searchwp_weight_threshold' );
view raw gistfile1.php hosted with ❤ by GitHub
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