apply_filters( 'relevanssi_indexing_adjust', bool $adjust )
Controls whether Relevanssi adjusts the number of posts to index at once or not.
Parameters
$adjust
(bool) If true
, adjust the number of posts. Default true
.
More information
When Relevanssi indexes posts, the number of posts indexed at one go is constantly adjusted up or down to speed up the process if it’s going faster or slow down if the posts take a long time to index. If, for some reason, you want to stop this adjustment and make Relevanssi index the same number of posts every time, have this filter function return false
:
add_filter( 'relevanssi_indexing_adjust', '__return_false' );
If you do this, you probably also want to adjust the number of posts indexed at one go; that’s done with the relevanssi_indexing_limit
filter.
Notice that if you have filter functions on relevanssi_do_not_index
, those can easily get the indexing stuck if combined with static indexing. Using relevanssi_indexing_restriction
filter hooks is better in that case.