Esempio n. 1
0
 /**
  * Initializes the Solr connection and tests the connection through a ping.
  *
  */
 protected function initializeSearch()
 {
     $solrConnection = t3lib_div::makeInstance('Tx_Solr_ConnectionManager')->getConnectionByPageId($GLOBALS['TSFE']->id, $GLOBALS['TSFE']->sys_language_uid, $GLOBALS['TSFE']->MP);
     $this->search = t3lib_div::makeInstance('Tx_Solr_Search', $solrConnection);
     $this->solrAvailable = $this->search->ping();
 }
Esempio n. 2
0
 /**
  * Initializes the Solr connection and tests the connection through a ping.
  *
  */
 protected function initializeSearch()
 {
     $solrConnection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Solr_ConnectionManager')->getConnectionByPageId($GLOBALS['TSFE']->id, $GLOBALS['TSFE']->sys_language_uid, $GLOBALS['TSFE']->MP);
     $this->search = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Solr_Search', $solrConnection);
     $this->solrAvailable = $this->search->ping();
 }