PHP Класс Smile\ElasticsuiteCore\Search\Request\SortOrder\SortOrderBuilder

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

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

Метод Описание
__construct ( StandardFactory $standardOrderFactory, NestedFactory $nestedOrderFactory, QueryBuilder $queryBuilder ) 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.

Приватные методы

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

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( StandardFactory $standardOrderFactory, NestedFactory $nestedOrderFactory, QueryBuilder $queryBuilder )
$standardOrderFactory StandardFactory Standard sort order factory.
$nestedOrderFactory NestedFactory Nested sort order factory.
$queryBuilder Smile\ElasticsuiteCore\Search\Request\Query\Filter\QueryBuilder Query builder used to build queries inside nested sort order.

buildSordOrders() публичный Метод

Build sort orders from array of sort orders definition.
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.
Результат Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[]