diff --git a/src/BookSearch/BookSearch.php b/src/BookSearch/BookSearch.php index 693e44d..ab0fa5e 100644 --- a/src/BookSearch/BookSearch.php +++ b/src/BookSearch/BookSearch.php @@ -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);