Available since: 2.8.8
searchwp_purge_document_content
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
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Remove all parsed document content when SearchWP's index resets | |
add_filter( 'searchwp_purge_document_content', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$purge |
Boolean |
Whether to remove parsed document content |