From 99579bbf6ed7459a3a342e08760249b817725f0b Mon Sep 17 00:00:00 2001 From: conradverm Date: Tue, 18 Dec 2007 11:07:51 +0000 Subject: [PATCH] KTS-2786 "KTAPI must provide a mechanism for indexing text to be updated so that client applications can provide text when the server does not have an extractor" Fixed. --- ktapi/KTAPIDocument.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/ktapi/KTAPIDocument.inc.php b/ktapi/KTAPIDocument.inc.php index ec8cd3a..c3df1a8 100644 --- a/ktapi/KTAPIDocument.inc.php +++ b/ktapi/KTAPIDocument.inc.php @@ -1114,6 +1114,7 @@ class KTAPI_Document extends KTAPI_FolderItem $documents = array(); $document_content = array(); + $indexContent = null; foreach($sysdata as $rec) { @@ -1134,6 +1135,9 @@ class KTAPI_Document extends KTAPI_FolderItem } switch($name) { + case 'index_content': + $indexContent = $value; + break; case 'created_date': $documents['created'] = $value; break; @@ -1243,6 +1247,11 @@ class KTAPI_Document extends KTAPI_FolderItem return $result; } } + if (!is_null($indexContent)) + { + $indexer = Indexer::get(); + $indexer->updateDocumentIndex($this->documentid, $indexContent); + } } function clearCache() -- libgit2 0.21.4