Commit 46860fa5de96509f33d795b2df04a44cc28ea256

Authored by Megan Watson
1 parent a91fffc1

Added a process date flag to show the document is being processed.

PT: 2100284

Committed by: Megan Watson
search2/indexing/indexerCore.inc.php
... ... @@ -1344,6 +1344,17 @@ abstract class Indexer
1344 1344 return;
1345 1345 }
1346 1346  
  1347 + // identify any documents that need processing and flag them so they are not taken in a followup run
  1348 + $ids = array();
  1349 + foreach($result as $docinfo)
  1350 + {
  1351 + $ids[] = $docinfo['document_id'];
  1352 + }
  1353 +
  1354 + $ids=implode(',',$ids);
  1355 + $sql = "UPDATE process_queue SET date_processed=NOW() WHERE document_id in ($ids)";
  1356 + DBUtil::runQuery($sql);
  1357 +
1347 1358 return $result;
1348 1359 }
1349 1360  
... ...