diff --git a/search2/indexing/indexerCore.inc.php b/search2/indexing/indexerCore.inc.php index 72c75ef..3b601e7 100644 --- a/search2/indexing/indexerCore.inc.php +++ b/search2/indexing/indexerCore.inc.php @@ -714,14 +714,14 @@ abstract class Indexer global $default; $config =& KTConfig::getSingleton(); - $indexLockFile = $config->get('cache/cacheDirectory') . '/main.index.lock'; + /*$indexLockFile = $config->get('cache/cacheDirectory') . '/main.index.lock'; if (is_file($indexLockFile)) { $default->log->info('indexDocuments: main.index.lock seems to exist. it could be that the indexing is still underway.'); $default->log->info('indexDocuments: Remove "' . $indexLockFile . '" if the indexing is not running or extend the frequency at which the background task runs!'); return; } - touch($indexLockFile); + touch($indexLockFile);*/ $this->checkForRegisteredTypes(); @@ -729,7 +729,7 @@ abstract class Indexer $default->log->info('indexDocuments: start'); if (!$this->doesDiagnosticsPass()) { - unlink($indexLockFile); + //unlink($indexLockFile); return; } @@ -761,14 +761,14 @@ abstract class Indexer $result = DBUtil::getResultArray($sql); if (PEAR::isError($result)) { - unlink($indexLockFile); + //unlink($indexLockFile); return; } // bail if no work to do if (count($result) == 0) { - unlink($indexLockFile); + //unlink($indexLockFile); return; } @@ -976,7 +976,7 @@ abstract class Indexer } $default->log->info('indexDocuments: done'); - unlink($indexLockFile); + //unlink($indexLockFile); } public function migrateDocuments($max=null) diff --git a/sql/mysql/install/data.sql b/sql/mysql/install/data.sql index fb23184..1dfc12a 100644 --- a/sql/mysql/install/data.sql +++ b/sql/mysql/install/data.sql @@ -4,32 +4,32 @@ -- KnowledgeTree Open Source Edition -- Document Management Made Simple -- Copyright (C) 2004 - 2007 The Jam Warehouse Software (Pty) Limited --- +-- -- This program is free software; you can redistribute it and/or modify it under -- the terms of the GNU General Public License version 3 as published by the -- Free Software Foundation. --- +-- -- This program is distributed in the hope that it will be useful, but WITHOUT -- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -- details. --- +-- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . --- +-- -- You can contact The Jam Warehouse Software (Pty) Limited, Unit 1, Tramber Place, -- Blake Street, Observatory, 7925 South Africa. or email info@knowledgetree.com. --- +-- -- The interactive user interfaces in modified source and object code versions -- of this program must display Appropriate Legal Notices, as required under -- Section 5 of the GNU General Public License version 3. --- +-- -- In accordance with Section 7(b) of the GNU General Public License version 3, -- these Appropriate Legal Notices must retain the display of the "Powered by --- KnowledgeTree" logo and retain the original copyright notice. If the display of the +-- KnowledgeTree" logo and retain the original copyright notice. If the display of the -- logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices --- must display the words "Powered by KnowledgeTree" and retain the original --- copyright notice. +-- must display the words "Powered by KnowledgeTree" and retain the original +-- copyright notice. -- Contributor( s): ______________________________________ -- -- MySQL dump 10.11 @@ -735,7 +735,7 @@ UNLOCK TABLES; LOCK TABLES `plugins` WRITE; /*!40000 ALTER TABLE `plugins` DISABLE KEYS */; -INSERT INTO `plugins` VALUES +INSERT INTO `plugins` VALUES (1,'ktcore.tagcloud.plugin','plugins/tagcloud/TagCloudPlugin.php',0,0,NULL,0,'Tag Cloud Plugin'), (2,'ktcore.rss.plugin','plugins/rssplugin/RSSPlugin.php',0,0,NULL,0,'RSS Plugin'), (3,'ktcore.language.plugin','plugins/ktcore/KTCoreLanguagePlugin.php',0,0,NULL,0,'Core Language Support'), @@ -1523,6 +1523,7 @@ UNLOCK TABLES; LOCK TABLES `zseq_mime_extractors` WRITE; /*!40000 ALTER TABLE `zseq_mime_extractors` DISABLE KEYS */; +INSERT INTO `zseq_mime_extractors` VALUES (1); /*!40000 ALTER TABLE `zseq_mime_extractors` ENABLE KEYS */; UNLOCK TABLES;