Heyday\Elastica\ReindexTask
Defines and refreshes the elastic search index.
Synopsis
class ReindexTask
extends BuildTask
{
- // members
- protected string $title = 'Elastic Search Reindex';
- protected string $description = 'Refreshes the elastic search index';
- private ElasticaService $service;
- // methods
- public void __construct()
- public void run()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
Methods
public
- __construct() — ReindexTask constructor.
- run() — Defines (creates and defines mappings for) the index and refreshes the index content.