Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product\QueryBuilder::applyNegation PHP Method

applyNegation() private method

Apply a negation to the current query.
private applyNegation ( Smile\ElasticsuiteCore\Search\Request\QueryInterface $query ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface
$query Smile\ElasticsuiteCore\Search\Request\QueryInterface Negated query.
return Smile\ElasticsuiteCore\Search\Request\QueryInterface
    private function applyNegation(QueryInterface $query)
    {
        return $this->prepareQuery(QueryInterface::TYPE_NOT, ['query' => $query]);
    }