Method | Description | |
---|---|---|
__construct ( StandardFactory $standardOrderFactory, NestedFactory $nestedOrderFactory, |
Constructor. | |
buildSordOrders ( Smile\ElasticsuiteCore\Api\Search\Request\ContainerConfigurationInterface $containerConfig, array $orders ) : Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[] | Build sort orders from array of sort orders definition. |
Method | Description | |
---|---|---|
addDefaultSortOrders ( array $orders, Smile\ElasticsuiteCore\Api\Index\MappingInterface $mapping ) : array | Append default sort to all queries to get fully predictable search results. | |
getSortOrderParams ( Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface $field, array $sortOrderParams ) : array | Retrieve base params for a sort order field. |
public __construct ( StandardFactory $standardOrderFactory, NestedFactory $nestedOrderFactory, |
||
$standardOrderFactory | StandardFactory | Standard sort order factory. |
$nestedOrderFactory | NestedFactory | Nested sort order factory. |
$queryBuilder | Query builder used to build queries inside nested sort order. |
public buildSordOrders ( Smile\ElasticsuiteCore\Api\Search\Request\ContainerConfigurationInterface $containerConfig, array $orders ) : Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[] | ||
$containerConfig | Smile\ElasticsuiteCore\Api\Search\Request\ContainerConfigurationInterface | Request configuration. |
$orders | array | Sort orders definitions. |
return | Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[] |