FlureeLabs

fluree reindex

Full reindex from commit history.

Usage

fluree reindex [LEDGER]

Arguments

ArgumentDescription
[LEDGER]Ledger name (defaults to active ledger)

Description

Rebuilds the binary index from scratch by replaying all commits in order. This is a heavier operation than index — use it when the index is corrupted, missing, or you want a guaranteed clean rebuild.

For routine indexing after transactions, prefer index.

Examples

# Reindex the active ledger
fluree reindex

# Reindex a specific ledger
fluree reindex mydb

Output

Reindexed mydb to t=15 (root: bafyreig...)

When to Use

  • Suspected index corruption — query results seem wrong or incomplete.
  • After schema or configuration changes that affect index structure.
  • Clean slate — you want to guarantee the index matches the commit history exactly.

For incremental indexing (faster, merges only new commits), use index instead.

See Also