/** * Checks the solr version and adds it to the report. * * @param SolrService $solr */ protected function checkSolrVersion(SolrService $solr) { try { $solrVersion = $this->formatSolrVersion($solr->getSolrServerVersion()); } catch (\Exception $e) { $this->responseStatus = Status::ERROR; $solrVersion = 'Error getting solr version: ' . $e->getMessage(); } $this->responseMessage = $this->replaceMarkerInResponse($this->responseMessage, 'VERSION', $solrVersion); }
/** * Gets the Tika version * * @return string Apache Solr server version string */ public function getTikaVersion() { // TODO add patch for endpoint on Apache Solr to return Tika version // for now returns the Solr version string f.e. "Apache Solr 5.2.0" (for now) return $this->solr->getSolrServerVersion(); }