fix: ask for core instead of path

This commit is contained in:
Guillermo Pages
2021-07-27 19:36:10 +02:00
parent 78cab08ac0
commit 78f20c4bdf

View File

@@ -17,8 +17,10 @@ class BookSearch
/** @var array parts of the filter query, parameter 'fq' */
private $filterQueryParts = array();
public function __construct(string $hostname, int $port, string $login, string $password, string $path, $edismax = true)
public function __construct(string $hostname, int $port, string $login, string $password, string $core, $edismax = true)
{
$path = 'solr/' . $core;
$options = compact('hostname', 'port', 'login', 'password', 'path');
$this->client = new \SolrClient($options);