Non-blocking snapshot serialization with the selected compression codec.
Serialize this index as a frozen binary snapshot (synchronous).
Export this index as a MiniSearch wire snapshot (serializationVersion: 2).
Use for migration or interchange with the minisearch package (JSON.stringify works via this method).
Term order in index may differ from MiniSearch native toJSON; search scores stay equivalent.
StaticfromBuild a read-only index from an async stream of documents (e.g. CSV parser).
For sync iterables, use createFrozenIndexBuilder with for...of instead.
StaticfromStaticfromStaticfromStaticfromStaticgetBuilt-in default for indexing / load options (tokenize, processTerm, extractField, …).
StaticloadLoad a frozen binary snapshot with streaming decompression when needed (bounded memory).
Staticload
Without a
filter, aggregates suggestions from raw query hits (no full result materialization). With afilter, uses search so stored fields are available to the predicate.