From bcb83d69429bea09cb391f21b3e028f961fbccd2 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 12 Dec 2020 16:28:47 +0100 Subject: [PATCH] set $nocontent to false when indexing a folder --- inc/inc.ClassFulltextService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/inc.ClassFulltextService.php b/inc/inc.ClassFulltextService.php index f10c7939b..7a8165cbe 100644 --- a/inc/inc.ClassFulltextService.php +++ b/inc/inc.ClassFulltextService.php @@ -66,7 +66,10 @@ class SeedDMS_FulltextService { } public function IndexedDocument($document, $forceupdate=false) { - $nocontent = ($document->getLatestContent()->getFileSize() > $this->maxsize) && !$forceupdate; + if($document->isType('document')) + $nocontent = ($document->getLatestContent()->getFileSize() > $this->maxsize) && !$forceupdate; + else + $nocontent = true; return new $this->services[0]['IndexedDocument']($document->getDMS(), $document, $this->converters, $nocontent, $this->cmdtimeout); }