private function getIsNotBlacklistedQuery($value)
    {
        $isBlacklisted = $this->queryFactory->create(
            QueryInterface::TYPE_NESTED,
            [
                'path'  => 'category',
                'query' => $this->queryFactory->create(
                    QueryInterface::TYPE_BOOL,
                    [
                        'must' => [
                            $this->queryFactory->create(
                                QueryInterface::TYPE_TERM,
                                ['field' => 'category.category_id', 'value' => $value]
                            ),
                            $this->queryFactory->create(
                                QueryInterface::TYPE_TERM,
                                ['field' => 'category.is_blacklisted', 'value' => true]
                            ),
                        ],
                    ]
                ),
            ]
        );

        $notBlacklisted = $this->queryFactory->create(QueryInterface::TYPE_NOT, ['query' => $isBlacklisted]);

        return $notBlacklisted;
    }
private function getIsNotBlacklistedQuery($value)
    {
        $isBlacklisted = $this->queryFactory->create(
            QueryInterface::TYPE_NESTED,
            [
                'path'  => 'category',
                'query' => $this->queryFactory->create(
                    QueryInterface::TYPE_BOOL,
                    [
                        'must' => [
                            $this->queryFactory->create(
                                QueryInterface::TYPE_TERM,
                                ['field' => 'category.category_id', 'value' => $value]
                            ),
                            $this->queryFactory->create(
                                QueryInterface::TYPE_TERM,
                                ['field' => 'category.is_blacklisted', 'value' => true]
                            ),
                        ],
                    ]
                ),
            ]
        );

        $notBlacklisted = $this->queryFactory->create(QueryInterface::TYPE_NOT, ['query' => $isBlacklisted]);

        return $notBlacklisted;
    }
private function getIsNotBlacklistedQuery ( $ value ) { $ isBlacklisted = $ this -> queryFactory -> create ( QueryInterface :: TYPE_NESTED , [ 'path' => 'category' , 'query' => $ this -> queryFactory -> create ( QueryInterface :: TYPE_BOOL , [ 'must' => [ $ this -> queryFactory -> create ( QueryInterface :: TYPE_TERM , [ 'field' => 'category.category_id' , 'value' => $ value ] ) , $ this -> queryFactory -> create ( QueryInterface :: TYPE_TERM , [ 'field' => 'category.is_blacklisted' , 'value' => true ] ) , ] , ] ) , ] ) ; $ notBlacklisted = $ this -> queryFactory -> create ( QueryInterface :: TYPE_NOT , [ 'query' => $ isBlacklisted ] ) ; return $ notBlacklisted ; }
Create the "is not blacklisted" query according to context parameters.

@param int $value The nested query field id value

@return \Smile\ElasticsuiteCore\Search\Request\QueryInterface
Create the is not blacklisted query according to context parameters .