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) {
|
foreach($res->highlighting->$docId as $field => $highlights) {
|
||||||
$combinedHighlights = array_merge($combinedHighlights, $highlights);
|
$combinedHighlights = array_merge($combinedHighlights, $highlights);
|
||||||
}
|
}
|
||||||
$result->Excerpt = implode(' ... ', $combinedHighlights);
|
$result->Excerpt = DBField::create_field('HTMLText', implode(' ... ', $combinedHighlights));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue