PHP Class Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\SortOrder\Builder

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

Public Methods

Method Description
__construct ( Builder $queryBuilder ) Constructor.
buildSortOrders ( array $sortOrders = [] ) : array Build sort orders.

Private Methods

Method Description
buildSortOrder ( Smile\ElasticsuiteCore\Search\Request\SortOrderInterface $sortOrder ) : array Build a sort order ES condition from a SortOrderInterface specification.

Method Details

__construct() public method

Constructor.
public __construct ( Builder $queryBuilder )
$queryBuilder Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Query\Builder Query builder used to build queries inside sort orders.

buildSortOrders() public method

Build sort orders.
public buildSortOrders ( array $sortOrders = [] ) : array
$sortOrders array Sort orders specification.
return array