public function SolrConnectorPluginBase::getLuceneMatchVersion in Search API Solr 8.3
Same name and namespace in other branches
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getLuceneMatchVersion()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getLuceneMatchVersion()
- 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getLuceneMatchVersion()
Gets the LuceneMatchVersion string.
Parameters
string $version: An optional Solr version string.
Return value
string The lucene match version in V.V format.
Overrides SolrConnectorInterface::getLuceneMatchVersion
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 443
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getLuceneMatchVersion($version = '') {
[
$major,
$minor,
] = explode('.', $version ?: $this
->getSolrVersion());
return $major . '.' . $minor;
}