Interface FuzzyMatcher

This service implements a fuzzy matching method.

interface FuzzyMatcher {
    match(query: string, text: string): boolean;
}

Implemented by

Methods

Methods

  • Performs fuzzy matching.

    Fuzzy matching improves search/completion user experience by allowing to omit characters. For example, a query such as FuMa matches the text FuzzyMatcher.

    Parameters

    • query: string

      The user input search query.

    • text: string

      The text that should be matched against the query.

    Returns boolean

    Whether the query matches the text.