Interface FuzzyIndexJSON

A saved index: version 1.

interface FuzzyIndexJSON {
    v: 1;
    fields: Record<string, number>;
    passageFields: string[];
    editMinLength: number;
    passages: number;
    passageWidth: number;
    documents: [id: string, fields: Record<string, string | string[]>][];
}

Properties

v: 1

The format's version.

fields: Record<string, number>

Each field's name and weight.

passageFields: string[]

The fields passages are taken from, in order.

editMinLength: number

The fewest letters for a match one edit away.

passages: number

The most passages a hit shows.

passageWidth: number

About how many characters a passage keeps.

documents: [id: string, fields: Record<string, string | string[]>][]

Each document as its id and its fields, in the order they were added.