private function getRangeQueryParams(ProductCondition $productCondition)
{
$fieldName = $this->getSearchFieldName($productCondition);
$operator = $productCondition->getOperator();
$value = $productCondition->getValue();
switch ($operator) {
case '>':
$operator = 'gt';
break;
case '>=':
$operator = 'gte';
break;
case '<':
$operator = 'lt';
break;
case '<=':
$operator = 'lte';
break;
}
return ['bounds' => [$operator => (double) $value], 'field' => $fieldName];
}