private function getRangeCondition($bounds)
    {
        $customerGroupId = $this->customerSession->getCustomerGroupId();

        $priceQuery = $this->queryFactory->create(
            QueryInterface::TYPE_NESTED,
            [
                'path'  => 'price',
                'query' => $this->queryFactory->create(
                    QueryInterface::TYPE_BOOL,
                    [
                        'must' => [
                            $this->queryFactory->create(
                                QueryInterface::TYPE_TERM,
                                ['field' => 'price.customer_group_id', 'value' => $customerGroupId]
                            ),
                            $this->queryFactory->create(
                                QueryInterface::TYPE_RANGE,
                                ['field' => 'price.price', 'bounds' => $bounds]
                            ),
                        ],
                    ]
                ),
            ]
        );

        return $priceQuery;
    }
private function getRangeCondition($bounds)
    {
        $customerGroupId = $this->customerSession->getCustomerGroupId();

        $priceQuery = $this->queryFactory->create(
            QueryInterface::TYPE_NESTED,
            [
                'path'  => 'price',
                'query' => $this->queryFactory->create(
                    QueryInterface::TYPE_BOOL,
                    [
                        'must' => [
                            $this->queryFactory->create(
                                QueryInterface::TYPE_TERM,
                                ['field' => 'price.customer_group_id', 'value' => $customerGroupId]
                            ),
                            $this->queryFactory->create(
                                QueryInterface::TYPE_RANGE,
                                ['field' => 'price.price', 'bounds' => $bounds]
                            ),
                        ],
                    ]
                ),
            ]
        );

        return $priceQuery;
    }
private function getRangeCondition ( $ bounds ) { $ customerGroupId = $ this -> customerSession -> getCustomerGroupId ( ) ; $ priceQuery = $ this -> queryFactory -> create ( QueryInterface :: TYPE_NESTED , [ 'path' => 'price' , 'query' => $ this -> queryFactory -> create ( QueryInterface :: TYPE_BOOL , [ 'must' => [ $ this -> queryFactory -> create ( QueryInterface :: TYPE_TERM , [ 'field' => 'price.customer_group_id' , 'value' => $ customerGroupId ] ) , $ this -> queryFactory -> create ( QueryInterface :: TYPE_RANGE , [ 'field' => 'price.price' , 'bounds' => $ bounds ] ) , ] , ] ) , ] ) ; return $ priceQuery ; }
Create the proper query filter for price, according to current customer group Id.

@SuppressWarnings(PHPMD.UnusedPrivateMethod)

@param array $bounds The price bounds to apply

@return \Smile\ElasticsuiteCore\Search\Request\QueryInterface
Create the proper query filter for price according to current customer group Id .