Merge pull request #687 from albig/fix-solrcore-handling

Allow setting of Solr core name on creating solrcore records.
This commit is contained in:
Alexander Bigga 2021-10-11 15:17:40 +02:00 committed by GitHub
commit 443b533004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class DataHandler implements LoggerAwareInterface
// Field post-processing for table "tx_dlf_solrcores".
case 'tx_dlf_solrcores':
// Create new Solr core.
$fieldArray['index_name'] = Solr::createCore();
$fieldArray['index_name'] = Solr::createCore($fieldArray['index_name']);
if (empty($fieldArray['index_name'])) {
$this->logger->error('Could not create new Apache Solr core');
}

View File

@ -47,7 +47,7 @@ return [
'type' => 'input',
'size' => 30,
'max' => 255,
'eval' => 'alphanum,nospace,required,unique',
'eval' => 'alphanum,nospace,unique',
'default' => '',
'fieldInformation' => [
'solrCoreStatus' => [