Hex Core JS
    Preparing search index...

    Function matchQuery

    • Returns a function that reports whether the given string matches the given query.

      The string matches the query if the string contains the terms (split by space, but quoted content is grouped together) in the query as a substring.

      Logic matches search handling in the ORM in applications generated by Hex Core Go Generator (go.hexinsights.dev/generator).

      Parameters

      • query: string

        The search query to use.

      Returns (str: string) => boolean