public function initializeBySitesAndConfigurations(array $sites, array $indexingConfigurationNames = ['*']): array
    {
        $initializationStatesBySiteId = [];
        foreach($sites as $site) {
            /** @var  Site $site */
            $initializationResult = $this->initializeBySiteAndIndexConfigurations($site, $indexingConfigurationNames);
            $initializationStatesBySiteId[$site->getRootPageId()] = $initializationResult;
        }

        return $initializationStatesBySiteId;
    }
public function initializeBySitesAndConfigurations(array $sites, array $indexingConfigurationNames = ['*']): array
    {
        $initializationStatesBySiteId = [];
        foreach($sites as $site) {
            /** @var  Site $site */
            $initializationResult = $this->initializeBySiteAndIndexConfigurations($site, $indexingConfigurationNames);
            $initializationStatesBySiteId[$site->getRootPageId()] = $initializationResult;
        }

        return $initializationStatesBySiteId;
    }
public function initializeBySitesAndConfigurations ( array $ sites , array $ indexingConfigurationNames = [ '*' ] ) : array { $ initializationStatesBySiteId = [ ] ; foreach ( $ sites as $ site ) { /** @var  Site $site */ $ initializationResult = $ this -> initializeBySiteAndIndexConfigurations ( $ site , $ indexingConfigurationNames ) ; $ initializationStatesBySiteId [ $ site -> getRootPageId ( ) ] = $ initializationResult ; } return $ initializationStatesBySiteId ; }
Truncates and rebuilds the tx_solr_indexqueue_item table for a set of sites and a set of index configurations.

@param array $sites The array of sites to initialize
@param array $indexingConfigurationNames the array of index configurations to initialize.
@return array
Truncates and rebuilds the tx_solr_indexqueue_item table for a set of sites and a set of index configurations .