feat(scripts): add OpenSearch backfill task
Iterates distinct DIDs in SQLite, resolves each one's PDS, and reindexes every space.remanso.note record into OpenSearch via com.atproto.repo.listRecords. Needed because note content is not persisted to SQLite, so the index would otherwise only cover notes created after deployment.
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
"server:prod": "deno run --allow-net --allow-read --allow-write --allow-env --allow-ffi --unstable-ffi server.ts",
|
||||
"migrate": "deno run --allow-net --allow-read --allow-write --allow-env --allow-ffi --unstable-ffi src/migrations/init.ts",
|
||||
"webhooks": "deno run --allow-net --allow-env scripts/manage-webhooks.ts",
|
||||
"webhooks:all": "deno run --allow-net --allow-env scripts/list-all-webhooks.ts"
|
||||
"webhooks:all": "deno run --allow-net --allow-env scripts/list-all-webhooks.ts",
|
||||
"backfill:search": "deno run --allow-net --allow-read --allow-write --allow-env --allow-ffi --unstable-ffi scripts/backfill-opensearch.ts"
|
||||
},
|
||||
"imports": {
|
||||
"@db/sqlite": "jsr:@db/sqlite@^0.13.0",
|
||||
|
||||
Reference in New Issue
Block a user