protected function deleteIndexDocuments($table, $uid)
    {
        // record can be indexed for multiple sites
        $indexQueueItems = $this->queue->getItems($table, $uid);
        foreach ($indexQueueItems as $indexQueueItem) {
            $site = $indexQueueItem->getSite();
            $enableCommitsSetting = $site->getSolrConfiguration()->getEnableCommits();
            $siteHash = $site->getSiteHash();
            // a site can have multiple connections (cores / languages)
            $solrConnections = $this->connectionManager->getConnectionsBySite($site);
            $this->deleteRecordInAllSolrConnections($table, $uid, $solrConnections, $siteHash, $enableCommitsSetting);
        }
    }
protected function deleteIndexDocuments($table, $uid)
    {
        // record can be indexed for multiple sites
        $indexQueueItems = $this->queue->getItems($table, $uid);
        foreach ($indexQueueItems as $indexQueueItem) {
            $site = $indexQueueItem->getSite();
            $enableCommitsSetting = $site->getSolrConfiguration()->getEnableCommits();
            $siteHash = $site->getSiteHash();
            // a site can have multiple connections (cores / languages)
            $solrConnections = $this->connectionManager->getConnectionsBySite($site);
            $this->deleteRecordInAllSolrConnections($table, $uid, $solrConnections, $siteHash, $enableCommitsSetting);
        }
    }
protected function deleteIndexDocuments ( $ table , $ uid ) { // record can be indexed for multiple sites $ indexQueueItems = $ this -> queue -> getItems ( $ table , $ uid ) ; foreach ( $ indexQueueItems as $ indexQueueItem ) { $ site = $ indexQueueItem -> getSite ( ) ; $ enableCommitsSetting = $ site -> getSolrConfiguration ( ) -> getEnableCommits ( ) ; $ siteHash = $ site -> getSiteHash ( ) ; // a site can have multiple connections (cores / languages) $ solrConnections = $ this -> connectionManager -> getConnectionsBySite ( $ site ) ; $ this -> deleteRecordInAllSolrConnections ( $ table , $ uid , $ solrConnections , $ siteHash , $ enableCommitsSetting ) ; } }
Deletes index documents for a given record identification.

@param string $table The record's table name.
@param int $uid The record's uid.
Deletes index documents for a given record identification .