Notion

Rebuilding Notion’s lexical search reindexer

Answers How do you rebuild an entire search index while users keep editing their pages?

Notion uses Spark to produce Elasticsearch shard snapshots offline. After restoring them, the cluster catches up on edits made during the rebuild.

The problem
Large rebuilds could take weeks while users continued updating the content being indexed.
What they did
Spark jobs build Elasticsearch snapshots per shard offline, then the live cluster restores them and replays changes.
The result
Notion reports that a full rebuild finishes in under a day without manual intervention.

Why read it Learn how offline index builds and edit replay work together during a large reindex.

Summarised from the original source by Informa AI. The full story, and every claim in it, belongs to the publisher.

Explore all Curiosity Cards →