PHP Класс Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\QueryResponse

Автор: Aurelien FOUCRET ([email protected])
Наследование: implements Magento\Framework\Search\ResponseInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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[]