PHP Класс Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Mapper

Автор: Aurelien FOUCRET ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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