PHP Class Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Datasource\PriceData

Author: Aurelien FOUCRET ([email protected])
Inheritance: implements Smile\ElasticsuiteCore\Api\Index\DatasourceInterface
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( PriceData $resourceModel, Magento\Catalog\Model\Product\TypeFactory $productTypeFactory ) Constructor.
addData ( $storeId, array $indexData ) Add price data to the index data.

Private Methods

Method Description
isOriginalPriceReliable ( string $productTypeId ) : boolean Price into indexed is not reliable for composite type.

Method Details

__construct() public method

Constructor.
public __construct ( PriceData $resourceModel, Magento\Catalog\Model\Product\TypeFactory $productTypeFactory )
$resourceModel Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Indexer\Fulltext\Datasource\PriceData Resource model
$productTypeFactory Magento\Catalog\Model\Product\TypeFactory Product type factory (used to detect products types).

addData() public method

public addData ( $storeId, array $indexData )
$indexData array