add field 'status' to index

This commit is contained in:
Uwe Steinmann 2020-09-12 12:50:21 +02:00
parent 25fc979a3a
commit 854a9ea7fd

View File

@ -162,6 +162,10 @@ class SeedDMS_SQLiteFTS_IndexedDocument extends SeedDMS_SQLiteFTS_Document {
$this->addField('groups', implode(' ', $allg));
*/
}
if($version) {
$status = $version->getStatus();
$this->addField('status', $status['status']+10);
}
if($version && !$nocontent) {
$path = $dms->contentDir . $version->getPath();
if(file_exists($path)) {