PHP Class Smile\ElasticsuiteCore\Indexer\GenericIndexerHandler

Author: Aurelien FOUCRET ([email protected])
Author: Romain Ruaud ([email protected])
Author: Fanny DECLERCK ([email protected])
Inheritance: implements Magento\Framework\Indexer\SaveHandler\IndexerInterface
ファイルを表示 Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexOperation, Cache $cacheHelper, Magento\Framework\Indexer\SaveHandler\Batch $batch, string $indexName, string $typeName ) Cosntructor
cleanIndex ( $dimensions ) This override does not delete data into the old index as expected but only create a new index.
deleteIndex ( $dimensions, Traversable $documents ) {@inheritDoc}
isAvailable ( ) {@inheritDoc}
saveIndex ( $dimensions, Traversable $documents ) {@inheritDoc}

Method Details

__construct() public method

Cosntructor
public __construct ( Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexOperation, Cache $cacheHelper, Magento\Framework\Indexer\SaveHandler\Batch $batch, string $indexName, string $typeName )
$indexOperation Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface Index operation service.
$cacheHelper Smile\ElasticsuiteCore\Helper\Cache Index caching helper.
$batch Magento\Framework\Indexer\SaveHandler\Batch Batch handler.
$indexName string The index name.
$typeName string The type name.

cleanIndex() public method

It allows to keep old index in place during full reindex. {@inheritDoc}
public cleanIndex ( $dimensions )

deleteIndex() public method

{@inheritDoc}
public deleteIndex ( $dimensions, Traversable $documents )
$documents Traversable

isAvailable() public method

{@inheritDoc}
public isAvailable ( )

saveIndex() public method

{@inheritDoc}
public saveIndex ( $dimensions, Traversable $documents )
$documents Traversable