PHP 클래스 Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Mapper

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

공개 메소드들

메소드 설명
__construct ( Builder $queryBuilder, Builder $sortOrderBuilder, Builder $aggregationBuilder ) Constructor.
buildSearchRequest ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array Transform the search request into an ES request.

비공개 메소드들

메소드 설명
getAggregations ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array Extract and build aggregations of the search request.
getRootFilter ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array Extract and build the root filter of the search request.
getRootQuery ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array Extract and build the root query of the search request.
getSortOrders ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array Extract and build sort orders of the search request.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Builder $queryBuilder, Builder $sortOrderBuilder, Builder $aggregationBuilder )
$queryBuilder Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Query\Builder Adapter query builder.
$sortOrderBuilder Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\SortOrder\Builder Adapter sort orders builder.
$aggregationBuilder Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Aggregation\Builder Adapter aggregations builder.

buildSearchRequest() 공개 메소드

Transform the search request into an ES request.
public buildSearchRequest ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array
$request Smile\ElasticsuiteCore\Search\RequestInterface Search Request.
리턴 array