\Elastica\AggregationFilter

Class Filter.

Summary

Methods
Properties
Constants
__construct()
setFilter()
toArray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string  $name, \Elastica\Query\AbstractQuery  $filter = null) 

Parameters

string $name
\Elastica\Query\AbstractQuery $filter

setFilter()

setFilter(\Elastica\Query\AbstractQuery  $filter) : $this

Set the filter for this aggregation.

Parameters

\Elastica\Query\AbstractQuery $filter

Returns

$this

toArray()

toArray() : array

Throws

\Elastica\Exception\InvalidException

If filter is not set

Returns

array