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


Note: Use of this hook will have an effect on performance

Depending on how performant your server is, you can modify how many posts are indexed at once using this filter. The more posts indexed per pass, the more aggressively the indexer will run.

Note: If you set this value too high you may experience indexer timeouts.

Example: To increase the number of posts SearchWP attempts to index at each pass, add the following to your active theme’s functions.php:

function my_searchwp_index_chunk_size() {
// index 15 posts at a time instead of the default 10
return 15;
add_filter( 'searchwp_index_chunk_size', 'my_searchwp_index_chunk_size' );
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