Skip to main content
Related: Schema, Indexer, CLI, Schema + Indexer E2E Use this page when you need to reindex a collection with schema changes.
Examples assume the SearchEngine::Book model from Model configuration.

Fastest ways to reindex

1

CLI (safe blue/green)

2

Ruby (auto fix drift)

reindex_collection! and Bulk.reindex_all! drop the active physical collection. Use only when destructive reindexing is safe.

Destructive reindex (only if safe)

Retention settings

Keep a limited number of old physical collections after swaps:

Next steps

  • See Schema for diff rules and retention behavior.
  • Use Observability to track schema apply and reindex events.