mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Better feedback in Solr_Configure task
This commit is contained in:
parent
d7546a4020
commit
566791655c
@ -134,8 +134,15 @@ class Solr_Configure extends BuildTask {
|
||||
user_error('Unknown Solr index mode '.$index['mode'], E_USER_ERROR);
|
||||
}
|
||||
|
||||
if ($service->coreIsActive($index)) $service->coreReload($index);
|
||||
else $service->coreCreate($index, "$remote/$index");
|
||||
if ($service->coreIsActive($index)) {
|
||||
echo "Reloading configuration...";
|
||||
$service->coreReload($index);
|
||||
echo "done\n";
|
||||
} else {
|
||||
echo "Creating configuration...";
|
||||
$service->coreCreate($index, "$remote/$index");
|
||||
echo "done\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user