Smile\ElasticsuiteVirtualCategory\Model\Preview::getAutomaticSortProductCollection PHP Method

getAutomaticSortProductCollection() private method

Return a collection with with products that match the category rules loaded.
private getAutomaticSortProductCollection ( ) : Collection
return Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection
    private function getAutomaticSortProductCollection()
    {
        $productCollection = $this->productCollectionFactory->create();
        $productCollection->setStoreId($this->category->getStoreId())->addQueryFilter($this->getQueryFilter())->addAttributeToSelect(['name', 'small_image']);
        return $productCollection;
    }