feat(search): relevance ranking + websearch_to_tsquery (#13)
CI / backend (push) Successful in 1m13s
CI / frontend (push) Successful in 27s
Deploy Staging / deploy (push) Successful in 44s
CI / backend (pull_request) Successful in 1m12s
CI / frontend (pull_request) Successful in 21s
Security / secrets (push) Successful in 5s
Security / dependencies (push) Successful in 1m3s
Security / secrets (pull_request) Successful in 4s
Security / dependencies (pull_request) Successful in 1m3s

This commit was merged in pull request #13.
This commit is contained in:
2026-07-01 21:08:53 +02:00
parent dfd8579899
commit a9be48daee
6 changed files with 128 additions and 48 deletions
@@ -268,8 +268,12 @@ public class SyncService : ISyncService
{
_db.Attachments.Add(new Attachment
{
UserId = userId, EmailId = email.Id, FileName = Trunc(fileName, 512) ?? string.Empty,
MimeType = Trunc(mime, 255), SizeBytes = size, GmailAttachmentId = attId
UserId = userId,
EmailId = email.Id,
FileName = Trunc(fileName, 512) ?? string.Empty,
MimeType = Trunc(mime, 255),
SizeBytes = size,
GmailAttachmentId = attId
});
}
@@ -338,8 +342,11 @@ public class SyncService : ISyncService
if (thread is not null) return thread;
thread = new MailThread
{
UserId = userId, GmailThreadId = gmailThreadId, Subject = Trunc(subject, 1024),
Snippet = Trunc(snippet, 2048), FirstMessageUtc = sentAt
UserId = userId,
GmailThreadId = gmailThreadId,
Subject = Trunc(subject, 1024),
Snippet = Trunc(snippet, 2048),
FirstMessageUtc = sentAt
};
_db.Threads.Add(thread);
return thread;