mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Change segments for configure and reindex tasks
This commit is contained in:
parent
b4d1e45f3c
commit
2932ae94ca
@ -9,7 +9,7 @@ use SilverStripe\FullTextSearch\Solr\Stores\SolrConfigStore;
|
||||
|
||||
class Solr_Configure extends Solr_BuildTask
|
||||
{
|
||||
private static $segment = 'Solr_Configure';
|
||||
private static $segment = 'SilverStripeFullTextSearchSolrTasksSolr_Configure';
|
||||
protected $enabled = true;
|
||||
|
||||
public function run($request)
|
||||
@ -80,8 +80,6 @@ class Solr_Configure extends Solr_BuildTask
|
||||
return new SolrConfigStore_File($indexstore);
|
||||
} elseif ($mode == 'webdav') {
|
||||
return new SolrConfigStore_WebDAV($indexstore);
|
||||
//@todo left commented after confusing merge conflict. Revisit if further testing is required
|
||||
//} elseif (ClassInfo::exists($mode) && ClassInfo::classImplements($mode, 'SolrConfigStore')) {
|
||||
} elseif (ClassInfo::exists($mode) && ClassInfo::classImplements($mode, SolrConfigStore::class)) {
|
||||
return new $mode($indexstore);
|
||||
} else {
|
||||
|
@ -25,7 +25,7 @@ use SilverStripe\FullTextSearch\Solr\SolrIndex;
|
||||
*/
|
||||
class Solr_Reindex extends Solr_BuildTask
|
||||
{
|
||||
private static $segment = 'Solr_Reindex';
|
||||
private static $segment = 'SilverStripeFullTextSearchSolrTasksSolr_Reindex';
|
||||
|
||||
protected $enabled = true;
|
||||
|
||||
@ -44,11 +44,6 @@ class Solr_Reindex extends Solr_BuildTask
|
||||
*/
|
||||
protected function getHandler()
|
||||
{
|
||||
|
||||
//@todo: this needs to determine the best class from a Factory implementation
|
||||
//@todo: it was 'SolrReindexHandler' but that doesn't work on 4.0
|
||||
//@todo left commented after a confusing merge conflict. Revisit if further investigation /testing is needed
|
||||
//return Injector::inst()->get('SolrReindexImmediateHandler');
|
||||
return Injector::inst()->get(SolrReindexHandler::class);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user