Log in
Factory

DataMapperFactory

Magento\Elasticsearch\Model\Adapter\BatchDataMapper\DataMapperFactory

What it does

This factory creates data mapper instances for transforming entity data into Elasticsearch-compatible format based on entity type (e.g., products, categories).

Developers use this when they need to prepare batch data for indexing into Elasticsearch, with the factory ensuring the correct mapper is instantiated and validates it implements the required interface.

Public Methods

  • create()