add files uuid

This commit is contained in:
Jürgen Mummert
2026-01-12 11:28:22 +01:00
parent 59b261c333
commit 3785758387
+5 -4
View File
@@ -132,10 +132,11 @@ class MeilisearchFileHelper
$normalizedPath = (string) $fileModel->path; $normalizedPath = (string) $fileModel->path;
$uuidBin = $fileModel->uuid; $uuidBin = $fileModel->uuid;
$uuid = StringUtil::binToUuid($uuidBin); $uuid = StringUtil::binToUuid($uuidBin);
$canonicalUrl = '/' . ltrim($normalizedPath, '/');
$this->log('UUID resolved', [ $this->log('UUID resolved', [
'path' => $normalizedPath, 'path' => $canonicalUrl,
'uuid' => $uuid, 'uuid' => $uuid,
]); ]);
@@ -201,7 +202,7 @@ class MeilisearchFileHelper
'tstamp' => $now, 'tstamp' => $now,
'last_seen' => $now, 'last_seen' => $now,
'type' => $type, 'type' => $type,
'url' => $cleanUrl, 'url' => $canonicalUrl,
'page_id' => $pageId, 'page_id' => $pageId,
'file_mtime' => $mtime, 'file_mtime' => $mtime,
'checksum' => $checksum, 'checksum' => $checksum,
@@ -227,7 +228,7 @@ class MeilisearchFileHelper
'tstamp' => $now, 'tstamp' => $now,
'last_seen' => $now, 'last_seen' => $now,
'type' => $type, 'type' => $type,
'url' => $cleanUrl, 'url' => $canonicalUrl,
'title' => $title ?? basename($normalizedPath), 'title' => $title ?? basename($normalizedPath),
'page_id' => $pageId, 'page_id' => $pageId,
'file_mtime' => $mtime, 'file_mtime' => $mtime,