mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not reindex document imediately
This commit is contained in:
parent
adfa9c442f
commit
3dfcb8d581
|
@ -162,6 +162,10 @@ class SeedDMS_Controller_EditDocument extends SeedDMS_Controller_Common {
|
|||
}
|
||||
}
|
||||
|
||||
/* There are various hooks in inc/inc.FulltextInit.php which will take
|
||||
* care of reindexing it. They just delete the indexing date which is
|
||||
* faster then indexing the folder completely
|
||||
*
|
||||
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $document) {
|
||||
$idoc = $fulltextservice->IndexedDocument($document);
|
||||
if(false !== $this->callHook('preIndexDocument', $document, $idoc)) {
|
||||
|
@ -173,6 +177,7 @@ class SeedDMS_Controller_EditDocument extends SeedDMS_Controller_Common {
|
|||
$index->commit();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
} elseif($result === false) {
|
||||
if(empty($this->errormsg))
|
||||
|
|
|
@ -96,6 +96,10 @@ class SeedDMS_Controller_EditFolder extends SeedDMS_Controller_Common {
|
|||
}
|
||||
}
|
||||
|
||||
/* There are various hooks in inc/inc.FulltextInit.php which will take
|
||||
* care of reindexing it. They just delete the indexing date which is
|
||||
* faster then indexing the folder completely
|
||||
*
|
||||
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $folder) {
|
||||
$idoc = $fulltextservice->IndexedDocument($folder);
|
||||
if(false !== $this->callHook('preIndexFolder', $folder, $idoc)) {
|
||||
|
@ -107,6 +111,7 @@ class SeedDMS_Controller_EditFolder extends SeedDMS_Controller_Common {
|
|||
$index->commit();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
} elseif($result === false) {
|
||||
if(empty($this->errormsg))
|
||||
|
|
Loading…
Reference in New Issue
Block a user