]> _ Git - cubist_minisearch.git/commitdiff
wip #4804 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Oct 2021 18:44:46 +0000 (20:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Oct 2021 18:44:46 +0000 (20:44 +0200)
src/Document.php
src/Document/PDF.php

index 04566c72b50cb6b321fddd3808e30c05e71aee14..83f79578072d22c5ee5584ee923bb158a32019d4 100644 (file)
@@ -144,7 +144,7 @@ class Document
      */
     public function getIndividualDocData()
     {
-        return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getTitle(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText()];
+        return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getThumb(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText()];
     }
 
 }
\ No newline at end of file
index 853456e0d69805e9985151bf52dda1ad81d98623..7c8a9d26152bd6b8d806636fd98bd38595a5bc3b 100644 (file)
@@ -17,13 +17,13 @@ class PDF extends Document
         if (!class_exists(\Cubist\PDF\PDFTools::class)) {
             throw new \Exception('Package cubist/pdf is required in order to index PDF documents');
         }
+        $this->file=$file;
     }
 
     public function process()
     {
         $base = $this->getIndividualDocData();
 
-
         $doc = new \Cubist\PDF\Document($this->file);
         $doc->processFullTexts();