diff --git a/SeedDMS_Lucene/Lucene/IndexedDocument.php b/SeedDMS_Lucene/Lucene/IndexedDocument.php index f3938df8c..03a164d94 100644 --- a/SeedDMS_Lucene/Lucene/IndexedDocument.php +++ b/SeedDMS_Lucene/Lucene/IndexedDocument.php @@ -168,6 +168,10 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document { if($comment = $document->getComment()) { $this->addField(Zend_Search_Lucene_Field::Text('comment', $comment, 'utf-8')); } + if($version) { + $status = $version->getStatus(); + $this->addField(Zend_Search_Lucene_Field::Keyword('status', $status['status'], 'utf-8')); + } if($version && !$nocontent) { $path = $dms->contentDir . $version->getPath(); if(file_exists($path)) {