PHP 클래스 Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\DocumentFactory

저자: Aurelien FOUCRET ([email protected])
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Framework\ObjectManagerInterface $objectManager, Magento\Framework\Search\EntityMetadata $entityMetadata, string $instanceName = 'Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\Document' ) Constructor.
create ( array $rawDocument ) : Document Create search dcument instance from a ES hit.

메소드 상세

__construct() 공개 메소드

Constructor.
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.

create() 공개 메소드

Create search dcument instance from a ES hit.
public create ( array $rawDocument ) : Document
$rawDocument array ES raw hit.
리턴 Document