I use Facets with addAggregation as below
$query->addAggregation(‘category’, ‘terms’, [‘field’ => ‘category_id’]);
Now, I only want facets with category has parent category id = 30. How to filter it?
I use Facets with addAggregation as below
$query->addAggregation(‘category’, ‘terms’, [‘field’ => ‘category_id’]);
Now, I only want facets with category has parent category id = 30. How to filter it?