/** * Create the SOLR connector. * * @return Connector */ protected function createConnector() { $config = $this->config->get('config'); $handlers = ['select' => ['fallback' => true, 'defaults' => ['fl' => '*,score'], 'appends' => ['fq' => []]], 'term' => ['functions' => ['terms']]]; foreach ($this->getHiddenFilters() as $filter) { array_push($handlers['select']['appends']['fq'], $filter); } $connector = new Connector($this->getSolrUrl(), new HandlerMap($handlers), $this->uniqueKey); $connector->setTimeout(isset($config->Index->timeout) ? $config->Index->timeout : 30); if ($this->logger) { $connector->setLogger($this->logger); } if ($this->serviceLocator->has('VuFind\\Http')) { $connector->setProxy($this->serviceLocator->get('VuFind\\Http')); } return $connector; }