You are here

public function SearchApiSolrService::getSolrConnection in Search API Solr 7

Gets the currently used Solr connection object.

Return value

SearchApiSolrConnectionInterface The solr connection object used by this server.

File

includes/service.inc, line 2671

Class

SearchApiSolrService
Search service class using Solr server.

Code

public function getSolrConnection() {
  $this
    ->connect();
  return $this->solr;
}