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 => (float) $value], 'field' => $fieldName];
    }
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 => (float) $value], 'field' => $fieldName];
    }
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 => ( float ) $ value ] , 'field' => $ fieldName ] ; }
Retrieve params for a range query from condition.

@param ProductCondition $productCondition Product condition.

@return array
Retrieve params for a range query from condition .