A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Fix search indexing after content split
Mohamed Bassemf5a674c2fd32
diff --git a/apps/workers/workers/searchWorker.ts b/apps/workers/workers/searchWorker.tsindex 177ca0db..74fcfc42 100644--- a/apps/workers/workers/searchWorker.ts+++ b/apps/workers/workers/searchWorker.ts@@ -76,12 +76,6 @@ async function runIndex(throw new Error(`Bookmark ${bookmarkId} not found`);}- // Extract plain text content from HTML for search indexing- const content = await Bookmark.getBookmarkPlainTextContent(- bookmark.link,- bookmark.userId,- );-const task = await searchClient.addDocuments([{@@ -92,7 +86,10 @@ async function runIndex(url: bookmark.link.url,linkTitle: bookmark.link.title,description: bookmark.link.description,- content,+ content: await Bookmark.getBookmarkPlainTextContent(+ bookmark.link,+ bookmark.userId,+ ),publisher: bookmark.link.publisher,author: bookmark.link.author,datePublished: bookmark.link.datePublished,