PHP Class Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Mapper

Author: Aurelien FOUCRET ([email protected])
Mostrar archivo Open project: smile-sa/elasticsuite Class Usage Examples

Public Methods

Method Description
__construct ( Builder $queryBuilder, Builder $sortOrderBuilder, Builder $aggregationBuilder ) Constructor.
buildSearchRequest ( Smile\ElasticsuiteCore\Search\RequestInterface $request ) : array Transform the search request into an ES request.

Private Methods

Method Description
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.

Method Details

__construct() public method

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() public method

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