From 6ecfa61ca16964ff7e9de4a22427d908219920df Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Wed, 1 May 2013 17:48:53 +1200 Subject: [PATCH] BUG removing content method again, since it doesn't work reliably --- code/DMSDocument.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/code/DMSDocument.php b/code/DMSDocument.php index 26398dc..35e3e32 100755 --- a/code/DMSDocument.php +++ b/code/DMSDocument.php @@ -802,19 +802,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { $file->delete(); } - /** - * Get Content For FullTextSearch module (using Solr) */ - function getContent() { - if (class_exists('FileTextExtractor')) { - // Determine which extractor can process this file. - $extractor = FileTextExtractor::for_file($this->owner->FullPath); - if (!$extractor) return null; - - $text = $extractor->getContent($this->owner->FullPath); - return $text; - } - } - } class DMSDocument_Controller extends Controller {