Casting the Excerpt field as HTMLText so we can format it in the template

This commit is contained in:
Sean Harvey 2013-02-13 14:03:50 +13:00
parent e335a14fc5
commit 224844fd44
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}
}