protected function getSolrConnection(Item $indexQueueItem)
    {
        /** @var $connectionManager ConnectionManager */
        $connectionManager = GeneralUtility::makeInstance(ConnectionManager::class);

        $solrConnection = $connectionManager->getConnectionByRootPageId(
            $indexQueueItem->getRootPageUid(),
            $GLOBALS['TSFE']->sys_language_uid
        );

        return $solrConnection;
    }
protected function getSolrConnection(Item $indexQueueItem)
    {
        /** @var $connectionManager ConnectionManager */
        $connectionManager = GeneralUtility::makeInstance(ConnectionManager::class);

        $solrConnection = $connectionManager->getConnectionByRootPageId(
            $indexQueueItem->getRootPageUid(),
            $GLOBALS['TSFE']->sys_language_uid
        );

        return $solrConnection;
    }
protected function getSolrConnection ( Item $ indexQueueItem ) { /** @var $connectionManager ConnectionManager */ $ connectionManager = GeneralUtility :: makeInstance ( ConnectionManager :: class ) ; $ solrConnection = $ connectionManager -> getConnectionByRootPageId ( $ indexQueueItem -> getRootPageUid ( ) , $ GLOBALS [ 'TSFE' ] -> sys_language_uid ) ; return $ solrConnection ; }
Gets the solr connection to use for indexing the page based on the
Index Queue item's properties.

@param Item $indexQueueItem
@return SolrConnection Solr server connection
Gets the solr connection to use for indexing the page based on the Index Queue item s properties .