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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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 méthode

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