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

저자: Aurelien FOUCRET ([email protected])
상속: implements Magento\Framework\Search\ResponseInterface
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$aggregations Magento\Framework\Api\Search\AggregationInterface Aggregation Collection
$count integer
$documents Document[] Document Collection

공개 메소드들

메소드 설명
__construct ( DocumentFactory $documentFactory, AggregationFactory $aggregationFactory, array $searchResponse ) Constructor
count ( ) {@inheritDoc}
getAggregations ( ) {@inheritDoc}
getIterator ( ) {@inheritDoc}

비공개 메소드들

메소드 설명
prepareAggregations ( array $searchResponse, AggregationFactory $aggregationFactory ) : void Build buckets from raw search response.
prepareDocuments ( array $searchResponse, DocumentFactory $documentFactory ) : void Build document list from the engine raw search response.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( DocumentFactory $documentFactory, AggregationFactory $aggregationFactory, array $searchResponse )
$documentFactory DocumentFactory Document factory.
$aggregationFactory AggregationFactory Aggregation factory.
$searchResponse array Engine raw response.

count() 공개 메소드

{@inheritDoc}
public count ( )

getAggregations() 공개 메소드

{@inheritDoc}
public getAggregations ( )

getIterator() 공개 메소드

{@inheritDoc}
public getIterator ( )

프로퍼티 상세

$aggregations 보호되어 있는 프로퍼티

Aggregation Collection
protected AggregationInterface,Magento\Framework\Api\Search $aggregations
리턴 Magento\Framework\Api\Search\AggregationInterface

$count 보호되어 있는 프로퍼티

protected int $count
리턴 integer

$documents 보호되어 있는 프로퍼티

Document Collection
protected Document[],Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response $documents
리턴 Document[]