From a4aa94c6f859679666930f21f4575e478eff4095 Mon Sep 17 00:00:00 2001 From: Conrad Vermeulen Date: Mon, 22 Oct 2007 16:26:01 +0000 Subject: [PATCH] KTS-673 "The search algorithm needs some work" Updated. Removed experimental indexer --- search2/indexing/extractors/OOPDFTextExtractor.inc.php | 101 ----------------------------------------------------------------------------------------------------- 1 file changed, 0 insertions(+), 101 deletions(-) delete mode 100755 search2/indexing/extractors/OOPDFTextExtractor.inc.php diff --git a/search2/indexing/extractors/OOPDFTextExtractor.inc.php b/search2/indexing/extractors/OOPDFTextExtractor.inc.php deleted file mode 100755 index 1ce3ef3..0000000 --- a/search2/indexing/extractors/OOPDFTextExtractor.inc.php +++ /dev/null @@ -1,101 +0,0 @@ -pdf2txt = new PDFExtractor(); - $this->text2pdf = new OOTextExtractor(); - } - - public function needsIntermediateSourceFile() - { - // we need the intermediate file because it - // has the correct extension. jodconverter uses the extension to determine mimetype - return true; - } - - public function getDisplayName() - { - throw new Exception('This should be overriden'); - } - - public function getSupportedMimeTypes() - { - return array(); - } - - public function extractTextContent() - { - $pdffile = $this->targetfile . '.pdf'; - - $this->text2pdf->setSourceFile($this->sourcefile); - $this->text2pdf->setTargetFile($pdffile); - $this->text2pdf->setMimeType($this->mimetype); - $this->text2pdf->setExtension($this->extension); - if ($this->extractTextContent()) - { - return false; - } - - $this->pdf2txt->setSourceFile($pdffile); - $this->pdf2txt->setTargetFile($this->targetfile); - $this->pdf2txt->setMimeType('application/pdf'); - $this->pdf2txt->setExtension('pdf'); - $result = $this->pdf2txt->extractTextContent(); - - unlink(@$pdffile); - - return $result; - } - - public function diagnose() - { - $diagnosis = $this->pdf2txt->diagnose(); - if (!empty($diagnosis)) - { - return $diagnosis; - } - - $diagnosis = $this->text2pdf->diagnose(); - if (!empty($diagnosis)) - { - return $diagnosis; - } - - return null; - } -} */ - -?> \ No newline at end of file -- libgit2 0.21.4