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


View Parameters »

SearchWP will automatically maintain its index over time as the content of your site changes. It accomplishes this by maintaining a list of edits and using SearchWP’s background process to clean up the index and reindex content when applicable.

Depending on how your website changes over time (e.g. a post type is removed, engine exclusions are added) the indexer may not know that some content can be removed from the index as the triggers are no longer taking place.

Using this hook you can apply a more aggressive index delta update if you’d like. This feature of SearchWP is opt-in as it does introduce more overhead when maintaining the index. Further, the circumstances to warrant this more aggressive delta update are not common.

// Tell SearchWP to more aggressively apply delta updates to the index.
add_filter( 'searchwp_aggressive_delta_update', '__return_true' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$aggressive Boolean

Whether aggressive delta updates should take place

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