diff --git a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php index 766a5c5896f4b47a7fc3b574d43d81473f196a0b..1d40ee493ba51c96efd371bd771464393bac6e7b 100644 --- a/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php +++ b/module/VuFind/src/VuFind/RecordDriver/SolrDefault.php @@ -1922,7 +1922,10 @@ class SolrDefault extends AbstractBase $query = new \VuFindSearch\Query\Query( 'hierarchy_parent_id:"' . $safeId . '"' ); - return $this->searchService->search('Solr', $query, 0, 0)->getTotal(); + // Disable highlighting for efficiency; not needed here: + $params = new \VuFindSearch\ParamBag(['hl' => ['false']]); + return $this->searchService->search('Solr', $query, 0, 0, $params) + ->getTotal(); } /**