Preparing search index...

    Type Alias FuzzyIndexOptions

    type FuzzyIndexOptions = {
        fuzzy: number;
        prefix?: boolean;
        combineWith?: "OR" | "AND";
        tokenize?: (text: string) => string[];
        processTerm?: (term: string) => string | null;
        processQueryTerm?: (term: string) => string | null;
    }
    Index
    fuzzy: number

    Max edit distance as a fraction of query token length (see MiniSearch).

    prefix?: boolean

    Match when a query token is a prefix of an indexed token. Default true.

    combineWith?: "OR" | "AND"

    How multi-token queries combine. Default 'OR'.

    tokenize?: (text: string) => string[]

    Splits raw text into tokens. Defaults to MiniSearch's whitespace/punctuation split.

    processTerm?: (term: string) => string | null

    Transforms each token before indexing AND searching. Return null to drop.

    processQueryTerm?: (term: string) => string | null

    Transforms each query token before searching. Falls back to processTerm when omitted. Use this to drop noise on the query side (e.g. very short stop-word tokens) without removing tokens from the persisted index.