/** * Retrieve fulltext search result data collection * * @return \Magento\CatalogSearch\Model\Resource\Fulltext\Collection */ public function getResultCollection() { return $this->_catalogSearchFulltextCollectionFactory->create(); }
/** * Retrieve item colleciton * * @param \Magento\Catalog\Model\Category $category * @return \Magento\Catalog\Model\Resource\Product\Collection */ public function getCollection(\Magento\Catalog\Model\Category $category) { return $this->fulltextCollectionFactory->create(); }