Available since: 2.7


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:

add_filter( 'searchwp_purge_pdf_content', '__return_true' ); // default is false
view raw functions.php hosted with ❤ by GitHub