private getStandardCategoryQuery ( Magento\Catalog\Api\Data\CategoryInterface $category ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface | ||
$category | Magento\Catalog\Api\Data\CategoryInterface | Category. |
return | Smile\ElasticsuiteCore\Search\Request\QueryInterface |
private function getStandardCategoryQuery(CategoryInterface $category)
{
$conditionsParams = ['data' => ['attribute' => 'category_ids', 'operator' => '()', 'value' => $category->getId()]];
$categoryCondition = $this->productConditionsFactory->create($conditionsParams);
return $this->queryBuilder->getSearchQuery($categoryCondition);
}