@maschinenlesbar.org/openka-cli
    Preparing search index...

    Interface IndexStore

    interface IndexStore {
        loadShard(shard: string): IndexShard;
        queuePostings?(shard: string, change: PostingChange): boolean;
        saveShard(shard: string, data: IndexShard): void;
        shardNames(): string[];
    }

    Hierarchy (View Summary)

    Index
    • Parameters

      • shard: string

      Returns IndexShard

    • Inside batchCatalog: keep a change to shard's postings and apply it when the batch ends, with every other change to that shard, before the catalog is written. Returns false outside a batch, and the caller applies the change at once. Optional: a store without it applies every change at once (issue #30).

      Parameters

      Returns boolean

    • Parameters

      Returns void

    • Every index shard present, sorted.

      Returns string[]