Method | Description | |
---|---|---|
__construct ( Magento\Framework\ObjectManagerInterface $objectManager, Magento\Framework\Search\EntityMetadata $entityMetadata, string $instanceName = 'Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\Document' ) | Constructor. | |
create ( array $rawDocument ) : |
Create search dcument instance from a ES hit. |
public __construct ( Magento\Framework\ObjectManagerInterface $objectManager, Magento\Framework\Search\EntityMetadata $entityMetadata, string $instanceName = 'Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\Document' ) | ||
$objectManager | Magento\Framework\ObjectManagerInterface | Object manager. |
$entityMetadata | Magento\Framework\Search\EntityMetadata | Entity metadata configurartion. |
$instanceName | string | Object instantiated type. |