mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-05-13 05:01:41 +00:00
return first 3000 chars as content
This commit is contained in:
parent
dec9467f8c
commit
b1e64e8d66
|
@ -65,7 +65,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
||||||
if($searchhit = $lucenesearch->getDocument($document->getID())) {
|
if($searchhit = $lucenesearch->getDocument($document->getID())) {
|
||||||
$idoc = $searchhit->getDocument();
|
$idoc = $searchhit->getDocument();
|
||||||
try {
|
try {
|
||||||
$content = htmlspecialchars(mb_strimwidth($idoc->getFieldValue('content'), 0, 1000, '...'));
|
$content = htmlspecialchars(mb_strimwidth($idoc->getFieldValue('content'), 0, 3000, '...'));
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user