diff --git a/src/Solr/Tasks/Solr_Configure.php b/src/Solr/Tasks/Solr_Configure.php index 173b27a..6e00259 100644 --- a/src/Solr/Tasks/Solr_Configure.php +++ b/src/Solr/Tasks/Solr_Configure.php @@ -17,6 +17,8 @@ class Solr_Configure extends Solr_BuildTask { parent::run($request); + $this->extend('updateBeforeSolrConfigureTask', $request); + // Find the IndexStore handler, which will handle uploading config files to Solr $store = $this->getSolrConfigStore(); @@ -35,6 +37,8 @@ class Solr_Configure extends Solr_BuildTask if (isset($e)) { exit(1); } + + $this->extend('updateAfterSolrConfigureTask', $request); } /** diff --git a/src/Solr/Tasks/Solr_Reindex.php b/src/Solr/Tasks/Solr_Reindex.php index 67d5d3d..1a08751 100644 --- a/src/Solr/Tasks/Solr_Reindex.php +++ b/src/Solr/Tasks/Solr_Reindex.php @@ -56,10 +56,14 @@ class Solr_Reindex extends Solr_BuildTask { parent::run($request); + $this->extend('updateBeforeSolrReindexTask', $request); + // Reset state $originalState = SearchVariant::current_state(); $this->doReindex($request); SearchVariant::activate_state($originalState); + + $this->extend('updateAfterSolrReindexTask', $request); } /**