From: Vincent Vanwaelscappel Date: Thu, 20 Jan 2022 09:06:08 +0000 (+0100) Subject: wip #5040 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=22b4bcf9987465083c102f26cf5830dc0d46bfe5;p=odl.git wip #5040 @0.5 --- diff --git a/app/Jobs/SearchIndex.php b/app/Jobs/SearchIndex.php index af51fbd..c243d80 100644 --- a/app/Jobs/SearchIndex.php +++ b/app/Jobs/SearchIndex.php @@ -40,8 +40,8 @@ class SearchIndex extends Index $data = $asset->getPageData(); $doc = new Document(); $doc->setType($data->get('type')); - $doc->setId('media_' . $data->get('type') . '_' . $data->get('id')); - $doc->setUrl($doc->getId()); + $doc->setId($data->get('id')); + $doc->setUrl('asset_' . $data->get('id')); $doc->setTitle($data->get('title')); $doc->setKeywords($data->get('keywords')); $this->addDocument($doc);