mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Merge branch '2'
This commit is contained in:
commit
415a1b9960
@ -17,6 +17,8 @@ class Solr_Configure extends Solr_BuildTask
|
|||||||
{
|
{
|
||||||
parent::run($request);
|
parent::run($request);
|
||||||
|
|
||||||
|
$this->extend('updateBeforeSolrConfigureTask', $request);
|
||||||
|
|
||||||
// Find the IndexStore handler, which will handle uploading config files to Solr
|
// Find the IndexStore handler, which will handle uploading config files to Solr
|
||||||
$store = $this->getSolrConfigStore();
|
$store = $this->getSolrConfigStore();
|
||||||
|
|
||||||
@ -35,6 +37,8 @@ class Solr_Configure extends Solr_BuildTask
|
|||||||
if (isset($e)) {
|
if (isset($e)) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->extend('updateAfterSolrConfigureTask', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,10 +56,14 @@ class Solr_Reindex extends Solr_BuildTask
|
|||||||
{
|
{
|
||||||
parent::run($request);
|
parent::run($request);
|
||||||
|
|
||||||
|
$this->extend('updateBeforeSolrReindexTask', $request);
|
||||||
|
|
||||||
// Reset state
|
// Reset state
|
||||||
$originalState = SearchVariant::current_state();
|
$originalState = SearchVariant::current_state();
|
||||||
$this->doReindex($request);
|
$this->doReindex($request);
|
||||||
SearchVariant::activate_state($originalState);
|
SearchVariant::activate_state($originalState);
|
||||||
|
|
||||||
|
$this->extend('updateAfterSolrReindexTask', $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user