Class SortDescriptor<T>
Inheritance
SortDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class SortDescriptor<T> : DescriptorPromiseBase<SortDescriptor<T>, IList<ISort>>, IDescriptor, IPromise<IList<ISort>> where T : class
Type Parameters
Constructors
|
Edit this page
View Source
SortDescriptor()
Declaration
Methods
|
Edit this page
View Source
Ascending(Field)
Declaration
public SortDescriptor<T> Ascending(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Ascending(SortSpecialField)
Declaration
public SortDescriptor<T> Ascending(SortSpecialField field)
Parameters
Returns
|
Edit this page
View Source
Ascending<TValue>(Expression<Func<T, TValue>>)
Declaration
public SortDescriptor<T> Ascending<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Descending(Field)
Declaration
public SortDescriptor<T> Descending(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
|
Edit this page
View Source
Descending(SortSpecialField)
Declaration
public SortDescriptor<T> Descending(SortSpecialField field)
Parameters
Returns
|
Edit this page
View Source
Descending<TValue>(Expression<Func<T, TValue>>)
Declaration
public SortDescriptor<T> Descending<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Field(Field, SortOrder)
Declaration
public SortDescriptor<T> Field(Field field, SortOrder order)
Parameters
Returns
|
Edit this page
View Source
Field(Func<FieldSortDescriptor<T>, IFieldSort>)
Declaration
public SortDescriptor<T> Field(Func<FieldSortDescriptor<T>, IFieldSort> sortSelector)
Parameters
Returns
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>, SortOrder)
Declaration
public SortDescriptor<T> Field<TValue>(Expression<Func<T, TValue>> field, SortOrder order)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
GeoDistance(Func<GeoDistanceSortDescriptor<T>, IGeoDistanceSort>)
Declaration
public SortDescriptor<T> GeoDistance(Func<GeoDistanceSortDescriptor<T>, IGeoDistanceSort> sortSelector)
Parameters
Returns
|
Edit this page
View Source
Script(Func<ScriptSortDescriptor<T>, IScriptSort>)
Declaration
public SortDescriptor<T> Script(Func<ScriptSortDescriptor<T>, IScriptSort> sortSelector)
Parameters
Returns
Implements
Extension Methods