'body' =>
$search->
toArray(),
'rest_total_hits_as_int' => true,
'track_total_hits' => true,
];
$data =
$this->client->
search( $arguments );
$data =
$data['hits'
]['hits'
];
$properties =
$this->
hydrateProperties($data,
$ids);
$actives =
$this->
getFilteredValues($criteria);
$criteriaPart =
$this->
createCollectionResult($properties,
$actives);
$result->
addFacet($criteriaPart);
} /**
* @param array[] $data
* @param int[] $optionIds
*
* @return Group[]
*/