@squawk
    Preparing search index...

    Interface AirportSearchResult

    A scored airport result from a fuzzy AirportResolver.search.

    interface AirportSearchResult {
        airport: Airport;
        matchedField: AirportSearchField;
        ranges: MatchRange[];
        score: number;
    }
    Index

    Properties

    airport: Airport

    The matched airport record.

    matchedField: AirportSearchField

    Which field produced the best match, identifying what AirportSearchResult.ranges index into.

    ranges: MatchRange[]

    Matched character ranges within the best-matching field's text, for highlighting.

    score: number

    Match strength in [0, 1], where 1 is an exact identifier or name match.