diff --git a/src/Traits/CoreTraits/CoreAdminTrait.php b/src/Traits/CoreTraits/CoreAdminTrait.php index 0714a4d7..de67986d 100644 --- a/src/Traits/CoreTraits/CoreAdminTrait.php +++ b/src/Traits/CoreTraits/CoreAdminTrait.php @@ -50,7 +50,8 @@ public function coreCreate($core, $configStore): bool $action = $this->admin->createCreate(); $action->setCore($core); - $action->setInstanceDir($configStore->instanceDir($core)); + $path = SolrCoreService::config()->get('solr_path') ?? $configStore->instanceDir($core); + $action->setInstanceDir($path); $this->admin->setAction($action); try { $response = $this->client->coreAdmin($this->admin);