mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Merge branch '2'
This commit is contained in:
commit
415a1b9960
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user