Commit c86fc384fd61d92bc260c2d33792806b8e1a1f25

Authored by conradverm
1 parent cfe90c7b

KTS-673

"The search algorithm needs some work"
Updated. Sometimes the extractor may change the target filename. 

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7468 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/indexing/indexerCore.inc.php
... ... @@ -798,6 +798,9 @@ abstract class Indexer
798 798  
799 799 if ($extractor->extractTextContent())
800 800 {
  801 + // the extractor may need to create another target file
  802 + $targetFile = $extractor->getTargetFile();
  803 +
801 804 $extractor->setExtractionStatus(true);
802 805 $this->executeHook($extractor, 'pre_index');
803 806 $this->executeHook($extractor, 'pre_index', $mimeType);
... ...