Skip to content

Commit

Permalink
Merge branch 'release-10.1' into release-10.1-fix-range-facets-more
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Nov 20, 2024
2 parents ced83f5 + aa287a6 commit 186e3e9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,14 @@ protected function getCreateRecordCallback(): ?callable
{
$manager = $this->getService(\VuFind\RecordDriver\PluginManager::class);
return function ($data) use ($manager) {
// Extract highlighting details injected earlier by
// \VuFindSearch\Backend\Solr\Response\Json\RecordCollectionFactory
$hl = $data['__highlight_details'] ?? [];
unset($data['__highlight_details']);

$driver = $manager->get('SolrWeb');
$driver->setRawData($data);
$driver->setHighlightDetails($hl);
return $driver;
};
}
Expand Down

0 comments on commit 186e3e9

Please sign in to comment.