Commit 5360da1f3d0613e6b74ffec52aea8ddd571d793c
1 parent
88aef21b
KTS-673
"The search algorithm needs some work" Updated. Scheduler initialised when indexer is first run. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7538 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
2 deletions
search2/indexing/indexerCore.inc.php
| @@ -635,13 +635,15 @@ abstract class Indexer | @@ -635,13 +635,15 @@ abstract class Indexer | ||
| 635 | } | 635 | } |
| 636 | $default->log->info('checkForRegisteredTypes: start'); | 636 | $default->log->info('checkForRegisteredTypes: start'); |
| 637 | 637 | ||
| 638 | - $this->registerTypes(true); | 638 | + $date = date('Y-m-d H:i'); |
| 639 | + $sql = "UPDATE scheduler_tasks SET run_time='$date'"; | ||
| 640 | + DBUtil::runQuery($sql); | ||
| 639 | 641 | ||
| 642 | + $this->registerTypes(true); | ||
| 640 | 643 | ||
| 641 | $disable = array( | 644 | $disable = array( |
| 642 | OS_WINDOWS=>array('PSExtractor'), | 645 | OS_WINDOWS=>array('PSExtractor'), |
| 643 | OS_UNIX => array() | 646 | OS_UNIX => array() |
| 644 | - | ||
| 645 | ); | 647 | ); |
| 646 | 648 | ||
| 647 | foreach($disable[OS_WINDOWS] as $extractor) | 649 | foreach($disable[OS_WINDOWS] as $extractor) |