first commit
This commit is contained in:
@@ -30,11 +30,11 @@ use TYPO3\CMS\Core\Database\QueryGenerator;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
|
||||
/**
|
||||
* Changes in TYPO3 have an impact on the solr content and are caught
|
||||
* Changes in TYPO3 have an impact on the meilisearch content and are caught
|
||||
* by the GarbageCollector and RecordMonitor. Both act as a TCE Main Hook.
|
||||
*
|
||||
* This base class is used to share functionality that are needed for both
|
||||
* to perform the changes in the data handler on the solr index.
|
||||
* to perform the changes in the data handler on the meilisearch index.
|
||||
*
|
||||
* @author Timo Schmidt <timo.schmidt@dkd.de>
|
||||
*/
|
||||
@@ -121,12 +121,12 @@ abstract class AbstractDataHandlerListener
|
||||
$isRecursiveUpdateRequired = $this->isRecursiveUpdateRequired($pageId, $changedFields);
|
||||
// If RecursiveUpdateTriggerConfiguration is false => check if changeFields are part of recursiveUpdateFields
|
||||
if ($isRecursiveUpdateRequired === false) {
|
||||
$solrConfiguration = $this->frontendEnvironment->getSolrConfigurationFromPageId($pageId);
|
||||
$indexQueueConfigurationName = $this->configurationAwareRecordService->getIndexingConfigurationName('pages', $pageId, $solrConfiguration);
|
||||
$meilisearchConfiguration = $this->frontendEnvironment->getMeilisearchConfigurationFromPageId($pageId);
|
||||
$indexQueueConfigurationName = $this->configurationAwareRecordService->getIndexingConfigurationName('pages', $pageId, $meilisearchConfiguration);
|
||||
if ($indexQueueConfigurationName === null) {
|
||||
return false;
|
||||
}
|
||||
$updateFields = $solrConfiguration->getIndexQueueConfigurationRecursiveUpdateFields($indexQueueConfigurationName);
|
||||
$updateFields = $meilisearchConfiguration->getIndexQueueConfigurationRecursiveUpdateFields($indexQueueConfigurationName);
|
||||
|
||||
// Check if no additional fields have been defined and then skip recursive update
|
||||
if (empty($updateFields)) {
|
||||
|
Reference in New Issue
Block a user