From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 12:30:59 +0000 (+0100) Subject: wip #4804 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4d60c3f722fd12794f2b4c8dbac7cf11dc157063;p=odl.git wip #4804 @0.25 --- diff --git a/app/Jobs/SearchIndex.php b/app/Jobs/SearchIndex.php index 6d9f9ad..54dff2b 100644 --- a/app/Jobs/SearchIndex.php +++ b/app/Jobs/SearchIndex.php @@ -41,7 +41,7 @@ class SearchIndex extends Index $doc->setId('media_' . $data->get('type') . '_' . $data->get('id')); $doc->setUrl($doc->getId()); $doc->setTitle($data->get('title')); - $doc->setKeywords(implode(' ', $data->get('keywords'))); + $doc->setKeywords($data->get('keywords')); $this->addDocument($doc); } } @@ -78,7 +78,7 @@ class SearchIndex extends Index $document->setId($pdf->id); $document->setUrl('asset_'.$document->getId()); $document->setTitle($pdf->title); - $document->setKeywords(implode(' ',$pdf->keywords)); + $document->setKeywords($pdf->keywords); $document->setThumb($pdf->getThumbURL()); $document->setType('pdf'); $this->addDocument($document);