add files uuid
This commit is contained in:
@@ -133,9 +133,10 @@ 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user