Available since: 2.7
searchwp_purge_pdf_content
By default, SearchWP leaves extracted PDF content in tact when you reset your index. This saves quite a bit of time during the reindex because the work of parsing all PDFs has already been done, and it’s only the parsed content that is reindexed (as opposed to both the parsing and the reindexing)
Example: if you would like to have SearchWP remove parsed PDF content when the index is 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 | |
add_filter( 'searchwp_purge_pdf_content', '__return_true' ); // default is false |