reindex document also if creation time is equal to content creation time

This commit is contained in:
Uwe Steinmann 2019-01-08 16:59:55 +01:00
parent b70fd9c81a
commit 24f0555d92
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ function tree($dms, $index, $indexconf, $folder, $indent='') { /* {{{ */
$created = 0; $created = 0;
} }
$content = $document->getLatestContent(); $content = $document->getLatestContent();
if($created >= $content->getDate()) { if($created > $content->getDate()) {
echo " (Document unchanged)\n"; echo " (Document unchanged)\n";
} else { } else {
$index->delete($hit->id); $index->delete($hit->id);

View File

@ -152,7 +152,7 @@ $(document).ready( function() {
*/ */
} else { } else {
/* Check if the attribute created is set or has a value older /* Check if the attribute created is set or has a value older
* than the lasted content. Documents without such an attribute * than the lastet content. Documents without such an attribute
* where added when a new document was added to the dms. In such * where added when a new document was added to the dms. In such
* a case the document content wasn't indexed. * a case the document content wasn't indexed.
*/ */
@ -162,7 +162,7 @@ $(document).ready( function() {
$created = 0; $created = 0;
} }
$content = $document->getLatestContent(); $content = $document->getLatestContent();
if($created >= $content->getDate() && !$forceupdate) { if($created > $content->getDate() && !$forceupdate) {
echo $indent."<span id=\"status_".$document->getID()."\" class=\"indexstatus\" data-docid=\"".$document->getID()."\">document unchanged</span>"; echo $indent."<span id=\"status_".$document->getID()."\" class=\"indexstatus\" data-docid=\"".$document->getID()."\">document unchanged</span>";
} else { } else {
$index->delete($hit->id); $index->delete($hit->id);