Interface ISortProcessor
Sorts the elements of an array ascending or descending. Homogeneous arrays of numbers will be sorted numerically, while arrays of strings or heterogeneous arrays of strings and numbers will be sorted lexicographically.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ISortProcessor : IProcessor
Properties
| Edit this page View SourceField
The field to be sorted
Declaration
[DataMember(Name = "field")]
Field Field { get; set; }
Property Value
Type | Description |
---|---|
Field |
Order
The sort order to use. Default is ascending.
Declaration
[DataMember(Name = "order")]
SortOrder? Order { get; set; }
Property Value
Type | Description |
---|---|
SortOrder? |
TargetField
The field to assign the sorted value to, by default field is updated in-place
Declaration
[DataMember(Name = "target_field")]
Field TargetField { get; set; }
Property Value
Type | Description |
---|---|
Field |