protected function SolrConnectorPluginBase::attachServerEndpoint in Search API Solr 8
Same name and namespace in other branches
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::attachServerEndpoint()
Attaches an endpoint to the Solr connection to communicate with the server.
This endpoint is different from the core endpoint which is the default one. The default endpoint for the core is used to communicate with the index. But for some administrative tasks the server itself needs to be contacted. This function is meant to be overwritten as soon as we deal with Solr service provider specific implementations of SolrHelper.
1 call to SolrConnectorPluginBase::attachServerEndpoint()
- SolrConnectorPluginBase::connect in src/
SolrConnector/ SolrConnectorPluginBase.php - Prepares the connection to the Solr server.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 310
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
protected function attachServerEndpoint() {
$this
->connect();
$configuration = $this->configuration;
$configuration['core'] = '.';
$configuration['key'] = 'server';
$this->solr
->createEndpoint($configuration);
}