private function getCategorySearchQuery(CategoryInterface $category)
    {
        $virtualRule = $category->getVirtualRule();
        if (!($virtualRule instanceof VirtualRuleInterface)) {
            return $this->loadVirtualRule($category)->getCategorySearchQuery($category);
        }

        return $this->helper->loadUsingCache($category, 'getCategorySearchQuery');
    }
private function getCategorySearchQuery(CategoryInterface $category)
    {
        $virtualRule = $category->getVirtualRule();
        if (!($virtualRule instanceof VirtualRuleInterface)) {
            return $this->loadVirtualRule($category)->getCategorySearchQuery($category);
        }

        return $this->helper->loadUsingCache($category, 'getCategorySearchQuery');
    }
private function getCategorySearchQuery ( CategoryInterface $ category ) { $ virtualRule = $ category -> getVirtualRule ( ) ; if ( ! ( $ virtualRule instanceof VirtualRuleInterface ) ) { return $ this -> loadVirtualRule ( $ category ) -> getCategorySearchQuery ( $ category ) ; } return $ this -> helper -> loadUsingCache ( $ category , 'getCategorySearchQuery' ) ; }
Get category search query

@param \Magento\Catalog\Api\Data\CategoryInterface $category Category

@return \Smile\ElasticsuiteCore\Search\Request\QueryInterface
Get category search query