From 9153365313e3293b0de65f1f5c043a02fbcee355 Mon Sep 17 00:00:00 2001 From: jovenden Date: Fri, 9 Mar 2018 09:33:29 +1300 Subject: [PATCH] Use full namespaced core for index and commit actions --- src/Solr/Services/SolrService.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Solr/Services/SolrService.php b/src/Solr/Services/SolrService.php index 7f20d88..1044260 100644 --- a/src/Solr/Services/SolrService.php +++ b/src/Solr/Services/SolrService.php @@ -76,17 +76,13 @@ class SolrService extends SolrService_Core } /** - * Create a new Solr3Service_Core instance for the passed core + * Create a new Solr4Service_Core instance for the passed core * @param $core string - The name of the core - * @return Solr3Service_Core + * @return Solr4Service_Core */ public function serviceForCore($core) { - // Unencode the class name - $core = SolrIndex::getClassNameFromIndex($core); - $klass = Config::inst()->get(get_called_class(), 'core_class'); - $coreName = ClassInfo::shortName($core); - return new $klass($this->_host, $this->_port, $this->_path . $coreName, $this->_httpTransport); + return new $klass($this->_host, $this->_port, $this->_path . $core, $this->_httpTransport); } }