You are here

public function SolrConnectorPluginBase::getSchemaVersion in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()
  2. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()
  3. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSchemaVersion()

Gets the schema version number.

Parameters

bool $reset: If TRUE the server will be asked regardless if a previous call is cached.

Return value

string The schema version number.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorInterface::getSchemaVersion

File

src/SolrConnector/SolrConnectorPluginBase.php, line 530

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getSchemaVersion($reset = FALSE) {
  $parts = explode('-', $this
    ->getSchemaVersionString($reset));
  return $parts[1];
}