public getCategorySearchQuery ( Magento\Catalog\Api\Data\CategoryInterface $category, array $excludedCategories = [] ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface | ||
$category | Magento\Catalog\Api\Data\CategoryInterface | Search category. |
$excludedCategories | array | Categories that should not be used into search query building. Used to avoid infinite recursion while building virtual categories rules. |
return | Smile\ElasticsuiteCore\Search\Request\QueryInterface |