PHP Class Smile\ElasticsuiteCatalog\Model\Category\Indexer\Fulltext\Action\Full

Author: Romain Ruaud ([email protected])
Show file Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
__construct ( Full $resourceModel ) Constructor.
rebuildStoreIndex ( integer $storeId, array | null $categoryIds = null ) : Traversable Get data for a list of categories in a store id.

Private Methods

Method Description
getSearchableCategories ( integer $storeId, string $categoryIds = null, integer $fromId, integer $limit = 100 ) : array Load a bulk of product data.

Method Details

__construct() public method

Constructor.
public __construct ( Full $resourceModel )
$resourceModel Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Indexer\Fulltext\Action\Full Indexer resource model.

rebuildStoreIndex() public method

If the product list ids is null, all categories data will be loaded.
public rebuildStoreIndex ( integer $storeId, array | null $categoryIds = null ) : Traversable
$storeId integer Store id.
$categoryIds array | null List of category ids.
return Traversable