Class: AndFilter

AndFilter

ElasticSearch And filter.

link

Constructor

new AndFilter(filters)

Parameters:
Name Type Default Description
filters Filter | Array.<Filter> []

Filters to logically AND together. Can be a single filter.

Source:

Extends

Methods

addFilter(filter)

Add a filter.

Parameters:
Name Type Description
filter Filter

Filter instance to add.

Source:

addFilter(filter)

Add a filter.

Parameters:
Name Type Description
filter Filter

Filter instance to add.

Source:

addTerm(field, value, noNestopt)

Shorthand to create and add a term filter.

Parameters:
Name Type Attributes Description
field string

Term filter field.

value any

Value to filter on.

noNest bool <optional>

If true, term filter will not automatically infer nesting.

Source:

addTerm(field, value, noNestopt)

Shorthand to create and add a term filter.

Parameters:
Name Type Attributes Description
field string

Term filter field.

value any

Value to filter on.

noNest bool <optional>

If true, term filter will not automatically infer nesting.

Source:

AndFilter

ElasticSearch And filter.

link

Constructor

new AndFilter(filters)

Parameters:
Name Type Default Description
filters Filter | Array.<Filter> []

Filters to logically AND together. Can be a single filter.

Source:

Extends

Methods

addFilter(filter)

Add a filter.

Parameters:
Name Type Description
filter Filter

Filter instance to add.

Source:

addFilter(filter)

Add a filter.

Parameters:
Name Type Description
filter Filter

Filter instance to add.

Source:

addTerm(field, value, noNestopt)

Shorthand to create and add a term filter.

Parameters:
Name Type Attributes Description
field string

Term filter field.

value any

Value to filter on.

noNest bool <optional>

If true, term filter will not automatically infer nesting.

Source:

addTerm(field, value, noNestopt)

Shorthand to create and add a term filter.

Parameters:
Name Type Attributes Description
field string

Term filter field.

value any

Value to filter on.

noNest bool <optional>

If true, term filter will not automatically infer nesting.

Source: