protected function getCleanSolrVersion($solrVersion)
    {
        $explodedSolrVersion = explode('.', $solrVersion);

        $shortSolrVersion = $explodedSolrVersion[0]
            . '.' . $explodedSolrVersion[1]
            . '.' . $explodedSolrVersion[2];

        return $shortSolrVersion;
    }
protected function getCleanSolrVersion($solrVersion)
    {
        $explodedSolrVersion = explode('.', $solrVersion);

        $shortSolrVersion = $explodedSolrVersion[0]
            . '.' . $explodedSolrVersion[1]
            . '.' . $explodedSolrVersion[2];

        return $shortSolrVersion;
    }
protected function getCleanSolrVersion ( $ solrVersion ) { $ explodedSolrVersion = explode ( '.' , $ solrVersion ) ; $ shortSolrVersion = $ explodedSolrVersion [ 0 ] . '.' . $ explodedSolrVersion [ 1 ] . '.' . $ explodedSolrVersion [ 2 ] ; return $ shortSolrVersion ; }
Gets the clean Solr version in case of a custom build which may have
additional information in the version string.

@param string $solrVersion Unformatted Apache Solr version number as provided by Solr.
@return string Clean Solr version number: mayor.minor.patchlevel
Gets the clean Solr version in case of a custom build which may have additional information in the version string .