From 78f20c4bdf5d5cdc9c2b5e345ad7a24cf3f91687 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Tue, 27 Jul 2021 19:36:10 +0200 Subject: [PATCH] fix: ask for core instead of path --- src/BookSearch/BookSearch.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);