Class SortProcessor
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 class SortProcessor : ProcessorBase, ISortProcessor, IProcessor
Properties
| Edit this page View SourceField
The field to be sorted
Declaration
public Field Field { get; set; }
Property Value
Type | Description |
---|---|
Field |
Name
Declaration
protected override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceOrder
The sort order to use. Default is ascending.
Declaration
public 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
public Field TargetField { get; set; }
Property Value
Type | Description |
---|---|
Field |