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.8


View Parameters »

If you’re noticing SearchWP struggle to index long or big entries on your site, you can use the searchwp_term_count_limit filter to adjust how SearchWP processes content when indexing.

When SearchWP considers something to be “big data” it will take a revised (but slower) approach to indexing that content so as to not overrun server resources. The default for this threshold is 10,000 characters.

You can customize this threshold by adding something like this to your theme’s functions.php:

// Tell SearchWP to take a more reserved (slower) approach when indexing
// Applicable for servers with limited resources
// Default $threshold is 10000
add_filter( 'searchwp_term_count_limit', function( $threshold ) {
return 5000;
} );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$threshold Integer

The number of characters to trigger alternative data handling when indexing

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