From 0e6360735b7826da02ae05fd6e776870f1048d44 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 17 Jul 2020 13:27:36 +0200 Subject: [PATCH] Add hierarchical facet helper to search2 results (#1678) --- module/VuFind/src/VuFind/Search/Search2/ResultsFactory.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/VuFind/src/VuFind/Search/Search2/ResultsFactory.php b/module/VuFind/src/VuFind/Search/Search2/ResultsFactory.php index 52716e06bcc..68437e6c587 100644 --- a/module/VuFind/src/VuFind/Search/Search2/ResultsFactory.php +++ b/module/VuFind/src/VuFind/Search/Search2/ResultsFactory.php @@ -63,6 +63,9 @@ public function __invoke(ContainerInterface $container, $requestedName, $solr->setSpellingProcessor( new \VuFind\Search\Solr\SpellingProcessor($config->Spelling ?? null) ); + $solr->setHierarchicalFacetHelper( + $container->get(\VuFind\Search\Solr\HierarchicalFacetHelper::class) + ); return $solr; } }