Interface ISort
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ISort
Properties
| Edit this page View SourceMissing
Specifies how documents which are missing the sort field should be treated.
Declaration
[DataMember(Name = "missing")]
object Missing { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Mode
Controls what collection value is picked for sorting a document when the field is a collection
Declaration
[DataMember(Name = "mode")]
SortMode? Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| SortMode? |
Nested
Specifies the path and filter to apply when sorting on a nested field
Declaration
[DataMember(Name = "nested")]
INestedSort Nested { get; set; }
Property Value
| Type | Description |
|---|---|
| INestedSort |
NumericType
Set a single resolution for the sort
Declaration
[DataMember(Name = "numeric_type")]
NumericType? NumericType { get; set; }
Property Value
| Type | Description |
|---|---|
| NumericType? |
Order
Controls the order of sorting
Declaration
[DataMember(Name = "order")]
SortOrder? Order { get; set; }
Property Value
| Type | Description |
|---|---|
| SortOrder? |
SortKey
The field on which to sort
Declaration
[IgnoreDataMember]
Field SortKey { get; }
Property Value
| Type | Description |
|---|---|
| Field |