public function handlePostFilter( CriteriaPartInterface
$criteriaPart,
Criteria
$criteria,
Search
$search,
ShopContextInterface
$context ) { $this->
handle($criteriaPart,
$criteria,
$search);
} private function handle(VariantCondition
$criteriaPart, Criteria
$criteria, Search
$search): void
{ $groupBy =
$this->
buildGroupBy($criteria);
if ($groupBy) { $search->
addPostFilter(new TermQuery($groupBy, true
));
$search->
addPostFilter( new TermsQuery( 'filterConfiguration.options.id',
$criteriaPart->
getOptionIds() ) );