set $nocontent to false when indexing a folder

This commit is contained in:
Uwe Steinmann 2020-12-12 16:28:47 +01:00
parent 82e5bf4687
commit bcb83d6942

View File

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