Commit c390d05cc9469e6488f7a223da3657b2fa285572
1 parent
55c81e3c
Added a process date flag to show the document is being processed.
PT: 2100284 Committed by: Megan Watson
Showing
1 changed file
with
11 additions
and
0 deletions
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 | ... | ... |