/**
* {@inheritdoc}
*/
public function handle( CriteriaPartInterface
$criteriaPart,
Criteria
$criteria,
Search
$search,
ShopContextInterface
$context ) { $aggregation =
new StatsAggregation('price'
);
$field =
$this->priceFieldMapper->
getPriceField($criteria,
$context);
$aggregation->
setField($field);
$search->
addAggregation($aggregation);
} /**
* {@inheritdoc}
*/
public function hydrate( array
$elasticResult,
ProductNumberSearchResult
$result,
Criteria
$criteria,