public class GroupBuilder extends GroupAbstractBuilder<GroupBuilder>
Modifier and Type | Class and Description |
---|---|
static class |
GroupBuilder.Nested<R> |
Modifier and Type | Method and Description |
---|---|
Group |
build() |
static GroupBuilder |
builder() |
static <S> GroupBuilder.Nested<S> |
builder(Consumer<Group> callback,
S parent) |
T |
withSort(List<SortElement> sorts) |
T |
withSort(SortElement.Type type,
String value,
SortElement.Order order,
Query query) |
T |
withSort(SortElement sort) |
T |
withSortAsc(String value) |
T |
withSortByQuery(Query query,
SortElement.Order order) |
QueryBuilder<T> |
withSortByQueryAsc() |
T |
withSortByQueryAsc(Query query) |
QueryBuilder<T> |
withSortByQueryDesc() |
T |
withSortByQueryDesc(Query query) |
T |
withSortByRelevancy() |
T |
withSortDesc(String value) |
T |
withSortExpressionAsc(String expression) |
T |
withSortExpressionDesc(String expression) |
withField, withGroupLeaderStrategy, withMaxFieldStrategy, withMinFieldStrategy, withSize, withSortStrategy, withSortStrategy
public static GroupBuilder builder()
public Group build()
public static <S> GroupBuilder.Nested<S> builder(Consumer<Group> callback, S parent)
public T withSort(SortElement sort)
public T withSort(List<SortElement> sorts)
public T withSortByRelevancy()
public T withSortAsc(String value)
public T withSortDesc(String value)
public T withSortExpressionAsc(String expression)
public T withSortExpressionDesc(String expression)
public QueryBuilder<T> withSortByQueryDesc()
public T withSortByQueryDesc(Query query)
public QueryBuilder<T> withSortByQueryAsc()
public T withSortByQueryAsc(Query query)
public T withSortByQuery(Query query, SortElement.Order order)
public T withSort(SortElement.Type type, String value, SortElement.Order order, Query query)