Schema V1 (Deprecated)
V1 is deprecated and read-only as of
v1.5.0. Reads,Suggest, andInfowork, andMigrateV1ToV2converts a collection in place, butAddandRemovereturnErrV1ReadOnly.Flushstill works and still deletes every key — read-only refuses keyword writes, it does not protect the collection. V1 gains no features: preset engines andEnableCacheboth require V2. The read path stays for the wholev1line and is removed no earlier thanv2.
V1 spreads one collection across many keys — roughly 5 per 100 keywords.
| Key pattern | Purpose |
|---|---|
{name}:keyword | Set of keywords |
{name}:prefix | Trie prefix edges |
{name}:suffix | Trie suffix links |
{name}:output:{state} | Output keywords per state |
{name}:node:{keyword} | Node metadata |
Find() costs O(N×3-5) round trips for N visited states. Add() cost O(M×3-10) for a
keyword of length M — no longer reachable, and recorded only to explain what migration is
worth. Compare against Schema V2.
Migrating
acor -name mycollection migrate --dry-run # preview
acor -name mycollection migrate # execute
acor -name mycollection migrate-rollback # back to V1