mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
add field 'status' to index
This commit is contained in:
parent
1fda490bbe
commit
41c08492ac
|
@ -168,6 +168,10 @@ class SeedDMS_Lucene_IndexedDocument extends Zend_Search_Lucene_Document {
|
||||||
if($comment = $document->getComment()) {
|
if($comment = $document->getComment()) {
|
||||||
$this->addField(Zend_Search_Lucene_Field::Text('comment', $comment, 'utf-8'));
|
$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) {
|
if($version && !$nocontent) {
|
||||||
$path = $dms->contentDir . $version->getPath();
|
$path = $dms->contentDir . $version->getPath();
|
||||||
if(file_exists($path)) {
|
if(file_exists($path)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user