Method | Description | |
---|---|---|
getCategorySearchQuery ( Magento\Catalog\Api\Data\CategoryInterface $category, array $excludedCategories = [] ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface | Build search query by category. | |
getSearchQueriesByChildren ( Magento\Catalog\Api\Data\CategoryInterface $rootCategory ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[] | Retrieve search queries of children categories. |
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 |
public getSearchQueriesByChildren ( Magento\Catalog\Api\Data\CategoryInterface $rootCategory ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[] | ||
$rootCategory | Magento\Catalog\Api\Data\CategoryInterface | Root category. |
return | Smile\ElasticsuiteCore\Search\Request\QueryInterface[] |