@squawk
    Preparing search index...

    Interface FuzzyMatch<T, F>

    A single ranked search result.

    interface FuzzyMatch<T, F extends string = string> {
        field: F;
        item: T;
        ranges: MatchRange[];
        score: number;
    }

    Type Parameters

    • T

      The item type being searched.

    • F extends string = string

      The field-name type, inferred from the search fields.

    Index

    Properties

    Properties

    field: F

    The SearchField.name of the field that produced the best score.

    item: T

    The matched item.

    ranges: MatchRange[]

    The matched character ranges within the best-matching field's text, ordered by start offset. Ready for highlight rendering.

    score: number

    The item's match score in [0, 1]; see FuzzyScore.score.