From 22b4bcf9987465083c102f26cf5830dc0d46bfe5 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 20 Jan 2022 10:06:08 +0100 Subject: [PATCH] wip #5040 @0.5 --- app/Jobs/SearchIndex.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5