Skip to content

Commit

Permalink
Merge branch 'release-10.0' into release-10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Nov 20, 2024
2 parents b54a9b2 + 5927f26 commit aa287a6
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 aa287a6

Please sign in to comment.