public function SearchApiSolrBackend::getSolrConnector in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSolrConnector()
- 8 src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSolrConnector()
- 4.x src/Plugin/search_api/backend/SearchApiSolrBackend.php \Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend::getSolrConnector()
Throws
\Drupal\Component\Plugin\Exception\PluginException
Overrides SolrBackendInterface::getSolrConnector
17 calls to SearchApiSolrBackend::getSolrConnector()
- SearchApiSolrBackend::calculateDependencies in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - Calculates dependencies for the configured plugin.
- SearchApiSolrBackend::deleteAllIndexItems in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - Deletes all the items from the index.
- SearchApiSolrBackend::deleteItems in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - Deletes the specified items from the index.
- SearchApiSolrBackend::executeGraphStreamingExpression in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - Executes a graph streaming expression.
- SearchApiSolrBackend::executeStreamingExpression in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - Executes a streaming expression.
File
- src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php, line 421
Class
- SearchApiSolrBackend
- Apache Solr backend for search api.
Namespace
Drupal\search_api_solr\Plugin\search_api\backendCode
public function getSolrConnector() {
if (!$this->solrConnector) {
if (!($this->solrConnector = $this->solrConnectorPluginManager
->createInstance($this->configuration['connector'], $this->configuration['connector_config']))) {
throw new SearchApiException("The Solr Connector with ID '{$this->configuration}['connector']' could not be retrieved.");
}
}
return $this->solrConnector;
}