mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Casting the Excerpt field as HTMLText so we can format it in the template
This commit is contained in:
parent
e335a14fc5
commit
224844fd44
@ -439,7 +439,7 @@ abstract class SolrIndex extends SearchIndex {
|
||||
foreach($res->highlighting->$docId as $field => $highlights) {
|
||||
$combinedHighlights = array_merge($combinedHighlights, $highlights);
|
||||
}
|
||||
$result->Excerpt = implode(' ... ', $combinedHighlights);
|
||||
$result->Excerpt = DBField::create_field('HTMLText', implode(' ... ', $combinedHighlights));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user