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


View Parameters »

SearchWP’s algorithm is based on the concept of weight. We can think of weight as a way to give a numeric value to the relevance of a result. The more weight the higher the relevance the higher it will appear on a results page.

The default maximum weight in the engine configuration UI is 100, you can use the searchwp_weight_max filter to change that like so:

// Increase the maximum available SearchWP weight to 500
function my_searchwp_weight_max( $weight ) {
return 500;
add_filter( 'searchwp_weight_max', 'my_searchwp_weight_max' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$weight Integer

The maximum weight available in the engine configuration UI

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