This Documentation is for SearchWP Version 3

Available since: 2.8.8


View Parameters »

Because document processing is a resource intensive procedure (and document content is very unlikely to be changed without SearchWP’s delta updating accommodating the edits) SearchWP by default does not remove parsed document content when resetting/purging the index.

If you would instead like SearchWP to completely remove all parsed document content when the index is being purged/reset add the following to your theme’s functions.php:

// Remove all parsed document content when SearchWP's index resets
add_filter( 'searchwp_purge_document_content', '__return_true' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$purge Boolean

Whether to remove parsed document content