kevy4.0

IDX.CREATE

Declare a secondary index over a key prefix (catalog mutation, sidecar-persisted).

IDX.CREATE name ON PREFIX prefix FIELD field TYPE i64|f64|str|vector KIND range|unique|text|ann|agg [MAXMEM bytes] [DIM dim] [DISTANCE cosine|l2|ip] [M m] [EF ef] [GROUPBY field]
Group
Indexes
Since
3.0.0
Arity
at least 11
Flags
write extension

Complexity

O(1) at the call; the build is asynchronous — each shard snapshots its matching keys (O(keys on that shard)) then backfills 2048 rows per tick. Per-row build cost: range/unique O(log N), text O(tokens), vector O(ef_construction * M * dim)

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

kevy only

kevy has this; Redis does not. nearest is RediSearch FT.CREATE — comparable declarative index-on-prefix, but RediSearch is a separate module with its own index server; kevy's catalog is in-process and the index is maintained in the write hook

See also

IDX.COUNTIDX.DROPIDX.EXPLAINIDX.LISTIDX.QUERYIDX.REBUILDIDX.VERIFY

← All commands