Hex Core JS
    Preparing search index...

    Function parseSearchQuery

    • Parses the given search query into individual terms and separates terms by required or optional. A term is required if it is wrapped in quotes and in this case a term may contain multiple words. Optional terms are individual words not wrapped in quotes.

      Parameters

      • query: string

        The search query to parse.

      Returns { optionalTerms: RegExp[]; requiredTerms: RegExp[] }