public function getCategorySearchQuery(
        ContainerConfigurationInterface $containerConfigurationInterface,
        CategoryInterface $category
    ) {
        $filters = array_merge(
            ['category' => $this->categoryFilterProvider->getQueryFilter($category)],
            $containerConfigurationInterface->getFilters()
        );

        $filterQuery  = $this->queryBuilder->createFilterQuery($containerConfigurationInterface, $filters);

        return $this->queryFactory->create(QueryInterface::TYPE_FILTER, ['filter' => $filterQuery]);
    }
public function getCategorySearchQuery(
        ContainerConfigurationInterface $containerConfigurationInterface,
        CategoryInterface $category
    ) {
        $filters = array_merge(
            ['category' => $this->categoryFilterProvider->getQueryFilter($category)],
            $containerConfigurationInterface->getFilters()
        );

        $filterQuery  = $this->queryBuilder->createFilterQuery($containerConfigurationInterface, $filters);

        return $this->queryFactory->create(QueryInterface::TYPE_FILTER, ['filter' => $filterQuery]);
    }
public function getCategorySearchQuery ( ContainerConfigurationInterface $ containerConfigurationInterface , CategoryInterface $ category ) { $ filters = array_merge ( [ 'category' => $ this -> categoryFilterProvider -> getQueryFilter ( $ category ) ] , $ containerConfigurationInterface -> getFilters ( ) ) ; $ filterQuery = $ this -> queryBuilder -> createFilterQuery ( $ containerConfigurationInterface , $ filters ) ; return $ this -> queryFactory -> create ( QueryInterface :: TYPE_FILTER , [ 'filter' => $ filterQuery ] ) ; }
Retrieve Search Query for a category

@param ContainerConfigurationInterface $containerConfigurationInterface Container Configuration
@param CategoryInterface               $category                        Category

@return QueryInterface
Retrieve Search Query for a category