Class NestedSort
Implements
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class NestedSort : INestedSort
Properties
| Edit this page View SourceFilter
A filter that the inner objects inside the nested path should match with in order for its field values to be taken into account by sorting. A common pattern is to repeat the query/filter inside the nested filter or query. By default no nested filter is active.
Declaration
public QueryContainer Filter { get; set; }
Property Value
Type | Description |
---|---|
QueryContainer |
MaxChildren
The maximum number of children to consider per root document when picking the sort value. Defaults to unlimited.
Declaration
public int? MaxChildren { get; set; }
Property Value
Type | Description |
---|---|
int? |
Nested
Same as top-level nested, but applies to another nested path within the current nested object.
Declaration
public INestedSort Nested { get; set; }
Property Value
Type | Description |
---|---|
INestedSort |
Path
Defines on which nested object to sort. The actual sort field must be a direct field inside this nested object. When sorting by nested field, this field is mandatory.
Declaration
public Field Path { get; set; }
Property Value
Type | Description |
---|---|
Field |