Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

feat(worker): index links instantly without waiting for them to be preserved

daniel31x13c8b1129e4fd5
diff --git a/apps/web/components/SearchBar.tsx b/apps/web/components/SearchBar.tsx
index 4a0b264f..99e56aa3 100644
--- a/apps/web/components/SearchBar.tsx
+++ b/apps/web/components/SearchBar.tsx
@@ -186,7 +186,7 @@ export default function SearchBar({ placeholder }: Props) {
</Button>
</div>
- {user?.hasUnIndexedLinks && !dismissSearchNote ? (
+ {/* {user?.hasUnIndexedLinks && !dismissSearchNote ? (
<div
role="alert"
className="border border-neutral p-2 my-1 rounded flex flex-col gap-2"
@@ -204,7 +204,7 @@ export default function SearchBar({ placeholder }: Props) {
Dismiss
</Button>
</div>
- ) : undefined}
+ ) : undefined} */}
</div>
</div>
)}
diff --git a/apps/worker/lib/archiveHandler.ts b/apps/worker/lib/archiveHandler.ts
index bc83e202..851addb9 100644
--- a/apps/worker/lib/archiveHandler.ts
+++ b/apps/worker/lib/archiveHandler.ts
@@ -50,6 +50,7 @@ export default async function archiveHandler(
process.env.PERPLEXITY_API_KEY)
? true
: undefined,
+ indexVersion: null,
},
});
return;
@@ -227,6 +228,7 @@ export default async function archiveHandler(
!finalLink.aiTagged
? true
: undefined,
+ indexVersion: null,
},
});
} else {
diff --git a/apps/worker/workers/linkIndexing.ts b/apps/worker/workers/linkIndexing.ts
index 8bd085ab..a7d29cd6 100644
--- a/apps/worker/workers/linkIndexing.ts
+++ b/apps/worker/workers/linkIndexing.ts
@@ -80,14 +80,6 @@ export async function startIndexing(interval = 10) {
{ indexVersion: null },
],
},
- {
- OR: [
- { lastPreserved: { not: null } },
- {
- url: null,
- },
- ],
- },
{
...(process.env.STRIPE_SECRET_KEY
? {
@@ -172,7 +164,6 @@ export async function startIndexing(interval = 10) {
{ indexVersion: { not: MEILI_INDEX_VERSION } },
{ indexVersion: null },
],
- lastPreserved: { not: null },
},
});