argia-migrator - v0.3.0
    Preparing search index...

    Interface Document<M>

    interface Document<M> {
        id: string;
        metadata?: M;
        text: string;
        version: number;
    }

    Type Parameters

    • M

    Hierarchy (View Summary)

    Index
    id: string
    metadata?: M
    text: string
    version: number

    Orders writes to one id: a store keeps the higher version and ignores a lower one that arrives late. Use a revision counter or the source row's last-modified time in milliseconds, taken from where the text was read, so a backfill of an old copy cannot overwrite a newer live write.