public static string ToSqlDirection(this IFieldSort sort) { if (sort == null) { return(string.Empty); } return(sort.SortDirection.ToSqlDirection()); }
public static IFieldSort ResolveFieldSort(this ElasticMappingResolver resolver, IFieldSort sort) { return(new FieldSort { Field = resolver.GetSortFieldName(sort.SortKey), IgnoreUnmappedFields = sort.IgnoreUnmappedFields, Missing = sort.Missing, Mode = sort.Mode, Nested = sort.Nested, NumericType = sort.NumericType, Order = sort.Order, UnmappedType = sort.UnmappedType }); }
public static void SetSort(this IQueryNode node, IFieldSort sort) { node.Data[SortKey] = sort; }