fuzzyRank beta
Function of @v12-engine/client/kit
ts
export declare function fuzzyRank(label: string, query: string | readonly string[], options?: {
all?: string;
threshold?: number;
fuzzy?: boolean;
}): {
rank: number;
ranges: MatchRange[];
} | undefined;How well a text matches the words typed, with the letters that matched: the rank is SearchHit.rank's (0 the words, 1 starts with them, 2 each word starts a word of it, 3 somewhere in it or in all, 4 and up nearly); none when a word is nowhere near. For one text at a time (a row's highlight); fuzzyBy for a list