Function expandQueryWithSynonyms

  • This function performs synonym expansion at query time by analyzing the user's search phrase, matching against a list of synonyms, and then modifying the search query accordingly.

    Returns

    The expanded query

    Parameters

    • query: string

      The query to expand

    • synonymsList: string[]

      the list of synonyms to expand the query with

    Returns string

Generated using TypeDoc