SearchWP

This Documentation is for SearchWP Version 3

Available since: 1.0

searchwp_process_term_limit

If you notice that posts are failing to index it may be due to your memory limits being breached (your server is running out of memory when SearchWP is trying to index a post). SearchWP automatically ‘chunks’ large entries into more manageable groups of terms, but you can reduce that number with this filter to reduce the memory footprint of SearchWP’s indexer.

Note: If you set this value too high you may trigger PHP memory issues

Example: To decrease the number of terms SearchWP indexes during each pass, add the following to your active theme’s functions.php:

<?php
// only process 200 terms per chunk per pass
function my_searchwp_process_term_limit() {
return 200;
}
add_filter( 'searchwp_process_term_limit', 'my_searchwp_process_term_limit' );
view raw gistfile1.php hosted with ❤ by GitHub
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]