protected function applyInitialization(Site $site, $indexingConfigurationName): bool
    {
        // clear queue
        $this->queue->deleteItemsBySite($site, $indexingConfigurationName);

        $solrConfiguration = $site->getSolrConfiguration();
        $tableToIndex = $solrConfiguration->getIndexQueueTableNameOrFallbackToConfigurationName($indexingConfigurationName);
        $initializerClass = $solrConfiguration->getIndexQueueInitializerClassByConfigurationName($indexingConfigurationName);
        $indexConfiguration = $solrConfiguration->getIndexQueueConfigurationByName($indexingConfigurationName);

        return $this->executeInitializer($site, $indexingConfigurationName, $initializerClass, $tableToIndex, $indexConfiguration);
    }
protected function applyInitialization(Site $site, $indexingConfigurationName): bool
    {
        // clear queue
        $this->queue->deleteItemsBySite($site, $indexingConfigurationName);

        $solrConfiguration = $site->getSolrConfiguration();
        $tableToIndex = $solrConfiguration->getIndexQueueTableNameOrFallbackToConfigurationName($indexingConfigurationName);
        $initializerClass = $solrConfiguration->getIndexQueueInitializerClassByConfigurationName($indexingConfigurationName);
        $indexConfiguration = $solrConfiguration->getIndexQueueConfigurationByName($indexingConfigurationName);

        return $this->executeInitializer($site, $indexingConfigurationName, $initializerClass, $tableToIndex, $indexConfiguration);
    }
protected function applyInitialization ( Site $ site , $ indexingConfigurationName ) : bool { // clear queue $ this -> queue -> deleteItemsBySite ( $ site , $ indexingConfigurationName ) ; $ solrConfiguration = $ site -> getSolrConfiguration ( ) ; $ tableToIndex = $ solrConfiguration -> getIndexQueueTableNameOrFallbackToConfigurationName ( $ indexingConfigurationName ) ; $ initializerClass = $ solrConfiguration -> getIndexQueueInitializerClassByConfigurationName ( $ indexingConfigurationName ) ; $ indexConfiguration = $ solrConfiguration -> getIndexQueueConfigurationByName ( $ indexingConfigurationName ) ; return $ this -> executeInitializer ( $ site , $ indexingConfigurationName , $ initializerClass , $ tableToIndex , $ indexConfiguration ) ; }
Initializes the Index Queue for a specific indexing configuration.

@param Site $site The site to initialize
@param string $indexingConfigurationName name of a specific
indexing configuration
@return bool TRUE if the initialization was successful, FALSE otherwise
Initializes the Index Queue for a specific indexing configuration .