\SearchWP\Indexer facilitates the indexing process of SearchWP. SearchWP’s indexer works alongside hooks set up in
\SearchWP\Sources to automatically keep the search Index up to date.
If you are working with site customizations that do not align with the delta update hooks set up in
\SearchWP\Sources you may want to force an Index update. This can be done like so:
|// Forcefully trigger SearchWP's Indexer.
|$indexer = new \SearchWP\Indexer();
\SearchWP\Indexer is triggered, any necessary delta updates will be queued and applied as though they were triggered by native hooks.
There are no arguments when instantiating a new
There are no public properties in
When working with
\SearchWP\Indexer there are a number of methods to consider.
- Pause the indexing process.
- Unpause the indexing process.
There are a number of hooks available to further modify the behavior of