I am trying to combine the filters for a FilterAggregation. Here the example:
$agg = new Elastica\Aggregation\Filters('size');
$filter1 = new Elastica\Query\Terms();
$filter1->setTerms('color', $color);
$filter2 = new Elastica\Query\Terms();
$filter2->setTerms('material', $material);
$agg->addFilter($filter1);
$agg->addFilter($filter2);
The Problem here, ElasticSearch don't combine the filter and give me an array with 2 elements, where each filter is aggregated but not the aggregation from both filter with AND.
How to make the AND between the filter?
Thanks
Nik