Flarum (v2.0.0-beta.5)
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    predicates: boolean = false

    Whether this gambit can use logical operators. For example, the tag gambit can be used as such: tag:foo,bar tag:baz which translates to (foo OR bar) AND baz.

    The info allows generation of the correct filtering format, which would be

    {
    tag: [
    'foo,bar', // OR because of the comma.
    'baz', // AND because it's a separate item.
    ]
    }

    The backend filter must be able to handle this format. Checkout the TagGambit and TagFilter classes for an example.

    type: GambitType = GambitType.Grouped

    Methods