|
|
@ -97,7 +97,7 @@ class RoblibSearchSolrsiteController extends ControllerBase { |
|
|
|
if (!empty($body)) { |
|
|
|
if (!empty($body)) { |
|
|
|
$bodyOutput = strip_tags($body[0]->getText()); |
|
|
|
$bodyOutput = strip_tags($body[0]->getText()); |
|
|
|
if (strlen($bodyOutput) > 500) { |
|
|
|
if (strlen($bodyOutput) > 500) { |
|
|
|
$bodyOutput = substr($bodyOutput, 0, 500) . '...'; |
|
|
|
$bodyOutput = substr($bodyOutput, 0, 499) . '...'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
$output['results'][$id]['body'] = empty($bodyOutput) ? '' : $bodyOutput; |
|
|
|
$output['results'][$id]['body'] = empty($bodyOutput) ? '' : $bodyOutput; |
|
|
|