private function getStandardCategoriesQuery(array $categoryIds, $excludedCategories)
    {
        $conditionsParams  = ['data' => ['attribute' => 'category_ids', 'operator' => '()', 'value' => $categoryIds]];
        $categoryCondition = $this->productConditionsFactory->create($conditionsParams);

        return $this->queryBuilder->getSearchQuery($categoryCondition, $excludedCategories);
    }
private function getStandardCategoriesQuery(array $categoryIds, $excludedCategories)
    {
        $conditionsParams  = ['data' => ['attribute' => 'category_ids', 'operator' => '()', 'value' => $categoryIds]];
        $categoryCondition = $this->productConditionsFactory->create($conditionsParams);

        return $this->queryBuilder->getSearchQuery($categoryCondition, $excludedCategories);
    }
private function getStandardCategoriesQuery ( array $ categoryIds , $ excludedCategories ) { $ conditionsParams = [ 'data' => [ 'attribute' => 'category_ids' , 'operator' => '()' , 'value' => $ categoryIds ] ] ; $ categoryCondition = $ this -> productConditionsFactory -> create ( $ conditionsParams ) ; return $ this -> queryBuilder -> getSearchQuery ( $ categoryCondition , $ excludedCategories ) ; }
Transform a category ids list in query rule.

@param array $categoryIds        Categories included in the query.
@param array $excludedCategories Categories ignored in subquery filters.

@return QueryInterface
Transform a category ids list in query rule .