diff --git a/search2/indexing/bin/registerTypes.php b/search2/indexing/bin/registerTypes.php index cf4f80b..726f7b3 100755 --- a/search2/indexing/bin/registerTypes.php +++ b/search2/indexing/bin/registerTypes.php @@ -12,21 +12,14 @@ */ session_start(); -print _kt("Registering Extractor mapping to Mime types") . "...\n"; - require_once(realpath('../../../config/dmsDefaults.php')); +print _kt("Registering Extractor mapping to Mime types") . "...\n"; + $config = KTConfig::getSingleton(); $indexer = $config->get('indexer/coreClass'); -if ($indexer != 'PHPLuceneIndexer') -{ - print _kt("This script only works with the PHPLuceneIndexer.") . "\n"; - exit; -} - require_once('indexing/indexerCore.inc.php'); - $clear=false; if ($argc > 0) {