summary = $summary; $this->isElasticSort = $isElasticSort; $this->fulltextProcessor = $fulltextProcessor; } /** * Reindex all sorting indexable methods; * trigger elasticsearch reindex if needed. * * @return void */ public function execute(): void { $this->summary->reindexAll(); if ($this->isElasticSort->execute(true)) { $this->fulltextProcessor->reindexAll(); } } }