public function getSolrConnectionForNodes(array $readNodeConfiguration, array $writeNodeConfiguration)
    {
        $connectionHash = md5(\json_encode($readNodeConfiguration) .  \json_encode($writeNodeConfiguration));
        if (!isset(self::$connections[$connectionHash])) {
            $readNode = Node::fromArray($readNodeConfiguration);
            $writeNode = Node::fromArray($writeNodeConfiguration);
            self::$connections[$connectionHash] = GeneralUtility::makeInstance(SolrConnection::class, $readNode, $writeNode);
        }
        return self::$connections[$connectionHash];
    }
public function getSolrConnectionForNodes(array $readNodeConfiguration, array $writeNodeConfiguration)
    {
        $connectionHash = md5(\json_encode($readNodeConfiguration) .  \json_encode($writeNodeConfiguration));
        if (!isset(self::$connections[$connectionHash])) {
            $readNode = Node::fromArray($readNodeConfiguration);
            $writeNode = Node::fromArray($writeNodeConfiguration);
            self::$connections[$connectionHash] = GeneralUtility::makeInstance(SolrConnection::class, $readNode, $writeNode);
        }
        return self::$connections[$connectionHash];
    }
public function getSolrConnectionForNodes ( array $ readNodeConfiguration , array $ writeNodeConfiguration ) { $ connectionHash = md5 ( \ json_encode ( $ readNodeConfiguration ) . \ json_encode ( $ writeNodeConfiguration ) ) ; if ( ! isset ( self :: $ connections [ $ connectionHash ] ) ) { $ readNode = Node :: fromArray ( $ readNodeConfiguration ) ; $ writeNode = Node :: fromArray ( $ writeNodeConfiguration ) ; self :: $ connections [ $ connectionHash ] = GeneralUtility :: makeInstance ( SolrConnection :: class , $ readNode , $ writeNode ) ; } return self :: $ connections [ $ connectionHash ] ; }
Creates a solr connection for read and write endpoints

@param array $readNodeConfiguration
@param array $writeNodeConfiguration
@return SolrConnection|object
Creates a solr connection for read and write endpoints