Example #1
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     // FIXME move connection building to EXT:solr
     // currently explicitly using "new" to bypass
     // \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance() or providing a Factory
     // EM might define a different connection than already in use by
     // Index Queue
     $this->solr = new SolrService($this->configuration['solrHost'], $this->configuration['solrPort'], $this->configuration['solrPath'], $this->configuration['solrScheme']);
 }
Example #2
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     if (!is_file(GeneralUtility::getFileAbsFileName($this->configuration['tikaPath'], FALSE))) {
         throw new \RuntimeException('Invalid path or filename for Tika application jar: ' . $this->configuration['tikaPath'], 1266864929);
     }
     if (!CommandUtility::checkCommand('java')) {
         throw new \RuntimeException('Could not find Java', 1421208775);
     }
 }
Example #3
0
 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->tikaUrl = 'http://' . $this->configuration['tikaServerHost'] . ':' . $this->configuration['tikaServerPort'];
 }