Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Action\Full::rebuildStoreIndex PHP Method

rebuildStoreIndex() public method

If the product list ids is null, all products data will be loaded.
public rebuildStoreIndex ( integer $storeId, array | null $productIds = null ) : array
$storeId integer Store id.
$productIds array | null List of product ids.
return array
    public function rebuildStoreIndex($storeId, $productIds = null)
    {
        $products = $this->getSearchableProducts($storeId, $productIds);
        foreach ($products as $productData) {
            $productId = (int) $productData['entity_id'];
            (yield $productId => $productData);
        }
    }