Wilr\SilverStripe\Algolia\Tasks\AlgoliaReindex
Bulk reindex all objects. Note that this should be run via cli, if you can, use the queuedjobs version `AlgoliaReindexAllJob`
Synopsis
class AlgoliaReindex
extends BuildTask
{
- // members
- protected string $title = 'Algolia Reindex';
- protected string $description = 'Algolia Reindex';
- private static string $segment = 'AlgoliaReindex';
- private static integer $batch_size = 20;
- private static array $reindexing_default_filters = ;
- protected array $errors = ;
- // methods
- public void run()
- public DataList getItems()
- public bool indexItem()
- public bool|string indexItems()
- public bool indexBatch()
- public array getErrors()
- public $this clearErrors()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $batch_size
-
$reindexing_default_filters
An optional array of default filters to apply when doing the reindex i.e for indexing Page subclasses you may wish to exclude expired pages. - $segment
protected
- $description
- $errors
- $title
Methods
public
- clearErrors()
- getErrors()
- getItems()
- indexBatch() — Index a batch of changes
- indexItem()
- indexItems()
- run()