Skip to content

Class: SearchBuilder

Hierarchy

Implements

  • IBuilder
  • IDebuggable
  • IDebuggable

Summary

Constructors

Properties

Class Properties

Currently none in this class.

Inherited Properties

Accessors

Class Accessors

Inherited Accessors

Methods

Class Methods

Inherited Methods

Constructors

constructor

+ new SearchBuilder(context: IContext, ...terms: SearchBuilder[] | string[]): SearchBuilder

Overrides void

Parameters:

Name Type
context IContext
...terms SearchBuilder[] | string[]

Returns: SearchBuilder

Accessors

terms

terms:

Methods

and

and(...terms: SearchBuilder[] | string[]): this

Parameters:

Name Type Description
...terms SearchBuilder[] | string[] A comma-separated list of SearchBuilder or string.

Returns: this

Returns a SearchBuilder instance for chaining.


build

build(): Promise‹any›

Overrides void

Returns: Promise‹any›

Returns a Promise with the search string.


Protected createSearchTerm

createSearchTerm(term: any): string

Parameters:

Name Type Description
term any The search item.

Returns: string

Returns a search string.


not

not(...terms: SearchBuilder[] | string[]): this

Parameters:

Name Type Description
...terms SearchBuilder[] | string[] a comma-separated list of SearchBuilder or string.

Returns: this

return a SearchBuilder instance for chaining


or

or(...terms: SearchBuilder[] | string[]): this

Parameters:

Name Type Description
...terms SearchBuilder[] | string[] A comma-separated list of SearchBuilder or string.

Returns: this

Returns a SearchBuilder instance for chaining.