Flarum (2.x)
    Preparing search index...

    The gambit registry. A map of resource types to gambit classes that should be used to filter resources of that type. Gambits are automatically converted to API filters when requesting resources. Gambits must be applied on a filter object that has a q property containing the search query.

    Index
    gambits: Record<string, (new () => IGambit)[]> = ...
    • Parameters

      • type: string
      • query: string
      • onmatch: (gambit: IGambit, matches: string[], negate: boolean, bit: string) => void

      Returns string