PHP 클래스 Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Aggregation\Builder

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

공개 메소드들

메소드 설명
__construct ( Magento\Framework\ObjectManagerInterface $objectManager, Builder $queryBuilder ) Constructor.
buildAggregations ( array $buckets = [] ) : array Build ES aggregations from search request buckets.

비공개 메소드들

메소드 설명
getBuilder ( string $bucketType ) : object Retrieve the builder used to convert a bucket into ES aggregation.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Framework\ObjectManagerInterface $objectManager, Builder $queryBuilder )
$objectManager Magento\Framework\ObjectManagerInterface Object manager instance.
$queryBuilder Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Query\Builder Query builder used to build queries inside sort orders.

buildAggregations() 공개 메소드

Build ES aggregations from search request buckets.
public buildAggregations ( array $buckets = [] ) : array
$buckets array Bucket to be converted into ES aggregations
리턴 array