Stored fields for a document id, when configured via Options.storeFields.
Returns undefined if the id is missing or no fields were stored.
Whether a document with the given external id is in the index.
Non-blocking snapshot serialization with the selected compression codec.
Serialize this index as a frozen binary snapshot (synchronous).
Search the index. API and scoring match MiniSearch 7 for the same options.
query may be a string, FrozenMiniSearchCore.wildcard, or a nested
QueryCombination. Per-query options override index defaults from
Options.searchOptions; see SearchOptions for boosts, prefix,
fuzzy, filters, and combineWith.
Matches sorted by descending score.
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.
StaticfromBuild a read-only index in one pass from an in-memory document array.
Indexing semantics match MiniSearch addAll for the same Options.
For custom ingestion (streaming, per-document transforms), use createFrozenIndexBuilder and freezeFrozenIndexBuilder instead. The named export buildFrozenFromDocuments is equivalent on the Node/browser entry.
StaticfromStaticgetBuilt-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.