Class DefaultFuzzyMatcher

This service implements a fuzzy matching method.

Implements

Constructors

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.