Trilium Frontend API
    Preparing search index...

    Interface HighlightedTokenInfo

    A single token to highlight in search results, tagged with how it should be matched. plain tokens are matched literally (case-insensitively); regex tokens (produced by the %= operator) are compiled to a regular expression.

    interface HighlightedTokenInfo {
        token: string;
        type: "plain" | "regex" | "fuzzy";
    }
    Index
    token: string
    type: "plain" | "regex" | "fuzzy"

    plain is matched literally and regex (from %=) as a regular expression. fuzzy is a word the search accepted in place of one the user typed, matched literally but rendered in a muted style so an approximate hit does not read as an exact one.