Search Index Sync

Keep an Elasticsearch or OpenSearch index (self-managed or hosted) consistent with the database. The database is the source of truth and the index is derived from a change stream (outbox or CDC), never a dual write from request code; updates carry the row version so late retries cannot overwrite newer data; reindexing goes through aliases with dual writes, count and checksum comparison and one atomic alias swap; a periodic reconciliation by id range repairs drift. Use when you hear "deleted items still show in search", "search results are stale", "reindex without downtime", "document count differs from the database", "we changed the mapping", "new record is not searchable immediately". Not for relevance quality (retrieval-evaluation), outbox mechanics (event-driven-reliability), one-off repair passes (safe-backfill), vector retrieval pipelines (rag-design), designing field types, analyzers and mappings (search-mapping-design).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit cc1b13be43

Frequently asked questions

npx get-skill add greenblacked/search-index-sync