GlobalFiltersWithWhere provides methods that allow linking filtering parameters in the Search.where method. It also provides the where function for the Global object, which can be used to work with EQL expressions and with filterClosure .

Type parameters

Hierarchy

Methods

and

  • and(...operands: Filter[]): Filter
  • Combining multiple filters with a logical AND.

    Parameters

    • Rest ...operands: Filter[]

    Returns Filter

fts

  • fts(query: string): Filter
  • Full-text search.

    Parameters

    • query: string

    Returns Filter

not

  • not(...operands: Filter[]): Filter
  • Combining multiple filters with the logical negation.

    Parameters

    • Rest ...operands: Filter[]

    Returns Filter

or

  • or(...operands: Filter[]): Filter
  • Combining multiple filters with a logical OR.

    Parameters

    • Rest ...operands: Filter[]

    Returns Filter

where

  • where(fc: FilterClosure<T>): Filter
  • where(eql: EqlQuery, params?: EqlParams): Filter
  • The [[g.where]] method allows filtering collection items.

    Parameters

    • fc: FilterClosure<T>

    Returns Filter

  • The [[g.where]] method allows filtering collection items.

    Parameters

    • eql: EqlQuery
    • Optional params: EqlParams

    Returns Filter