23 private $objectManager;
35 private $dataMapperEntity;
43 array $dataMappers = []
46 $this->dataMappers = $dataMappers;
54 array $entityIndexData,
71 if (empty($this->dataMapperEntity)) {
74 'No entity type given' 78 throw new \LogicException(
83 $this->dataMapperEntity = $this->objectManager->create($dataMapperClass);
84 if (!($this->dataMapperEntity instanceof DataMapperInterface)) {
85 throw new \InvalidArgumentException(
86 'Data mapper must implement \Magento\Elasticsearch\Model\Adapter\DataMapperInterface' 90 return $this->dataMapperEntity;
__construct(ObjectManagerInterface $objectManager, array $dataMappers=[])
const ELASTICSEARCH_TYPE_DEFAULT
map( $entityId, array $entityIndexData, $storeId, $context=[])