IDX.REBUILDRebuild an index: a range or unique index packs its leaves, an ANN index compacts its tombstones, a global index samples its split points again. A text or agg index is refused.
| Syntax | IDX.REBUILD name |
| Group | index |
| Arity | 2 |
| Since | 3.0.0 |
| Flags | write, extension |
| Complexity | Depends on the index kind, on every shard, synchronously. range / unique: O(N) to pack the leaves. global: one sample of every shard's values, then the moved entries. ann: O(V_live * ef_construction * M * dim) distance evaluations — the most expensive verb in the extension surface |
| Redis compatibility | kevy-only: no Redis analogue — RediSearch handles HNSW deletes internally and exposes no rebuild verb |