public function getConnectionByRootPageId($pageId, $language = 0)
    {
        $config = $this->getConfigurationByRootPageId($pageId, $language);
        $solrConnection = $this->getConnectionFromConfiguration($config);

        return $solrConnection;
    }
public function getConnectionByRootPageId($pageId, $language = 0)
    {
        $config = $this->getConfigurationByRootPageId($pageId, $language);
        $solrConnection = $this->getConnectionFromConfiguration($config);

        return $solrConnection;
    }
public function getConnectionByRootPageId ( $ pageId , $ language = 0 ) { $ config = $ this -> getConfigurationByRootPageId ( $ pageId , $ language ) ; $ solrConnection = $ this -> getConnectionFromConfiguration ( $ config ) ; return $ solrConnection ; }
Gets a Solr connection for a root page ID.

@param int $pageId A root page ID.
@param int $language The language ID to get the connection for as the path may differ. Optional, defaults to 0.
@return SolrConnection A solr connection.
@throws NoSolrConnectionFoundException
Gets a Solr connection for a root page ID .