Interface FuzzySearchOptions

How a search matches, and how many hits it answers.

interface FuzzySearchOptions {
    topK?: number;
    match?: "any" | "all";
}

Properties

Properties

topK?: number

The most hits answered: a whole number, 0 or more, or Infinity for every hit.

Default

10
match?: "any" | "all"

'all' keeps the documents in which every query word matches; 'any' those in which at least one does.

Default

'all'