\Elastica\AggregationFilters

Class Filters.

Summary

Methods
Properties
Constants
addFilter()
setOtherBucket()
setOtherBucketKey()
toArray()
No public properties found
NAMED_TYPE
ANONYMOUS_TYPE
No protected methods found
No protected properties found
N/A
No private methods found
$_type
N/A

Constants

NAMED_TYPE

NAMED_TYPE

ANONYMOUS_TYPE

ANONYMOUS_TYPE

Properties

$_type

$_type : integer

Type

integer — Type of bucket keys - named, or anonymous

Methods

addFilter()

addFilter(\Elastica\Query\AbstractQuery  $filter, string  $name = null) : $this

Add a filter.

If a name is given, it will be added as a key, otherwise considered as an anonymous filter

Parameters

\Elastica\Query\AbstractQuery $filter
string $name

Returns

$this

setOtherBucket()

setOtherBucket(boolean  $otherBucket) : $this

Parameters

boolean $otherBucket

Returns

$this

setOtherBucketKey()

setOtherBucketKey(string  $otherBucketKey) : $this

Parameters

string $otherBucketKey

Returns

$this

toArray()

toArray() : array

Returns

array