protected function initializeSearch()
    {
        /** @var \ApacheSolrForTypo3\Solr\ConnectionManager $solrConnection */
        $solrConnection = GeneralUtility::makeInstance(ConnectionManager::class)->getConnectionByPageId($this->typoScriptFrontendController->id, $this->typoScriptFrontendController->sys_language_uid, $this->typoScriptFrontendController->MP);
        $search = GeneralUtility::makeInstance(Search::class, $solrConnection);

        $this->searchService = GeneralUtility::makeInstance(
            SearchResultSetService::class,
            /** @scrutinizer ignore-type */ $this->typoScriptConfiguration,
            /** @scrutinizer ignore-type */ $search
        );
    }
protected function initializeSearch()
    {
        /** @var \ApacheSolrForTypo3\Solr\ConnectionManager $solrConnection */
        $solrConnection = GeneralUtility::makeInstance(ConnectionManager::class)->getConnectionByPageId($this->typoScriptFrontendController->id, $this->typoScriptFrontendController->sys_language_uid, $this->typoScriptFrontendController->MP);
        $search = GeneralUtility::makeInstance(Search::class, $solrConnection);

        $this->searchService = GeneralUtility::makeInstance(
            SearchResultSetService::class,
            /** @scrutinizer ignore-type */ $this->typoScriptConfiguration,
            /** @scrutinizer ignore-type */ $search
        );
    }
protected function initializeSearch ( ) { /** @var \ApacheSolrForTypo3\Solr\ConnectionManager $solrConnection */ $ solrConnection = GeneralUtility :: makeInstance ( ConnectionManager :: class ) -> getConnectionByPageId ( $ this -> typoScriptFrontendController -> id , $ this -> typoScriptFrontendController -> sys_language_uid , $ this -> typoScriptFrontendController -> MP ) ; $ search = GeneralUtility :: makeInstance ( Search :: class , $ solrConnection ) ; $ this -> searchService = GeneralUtility :: makeInstance ( SearchResultSetService :: class , /** @scrutinizer ignore-type */ $ this -> typoScriptConfiguration , /** @scrutinizer ignore-type */ $ search ) ; }
Initialize the Solr connection and
test the connection through a ping
Initialize the Solr connection and test the connection through a ping