Skip to content

Commit 1e90b29

Browse files
Add information about the default sort mode (#40657)
1 parent 862fe61 commit 1e90b29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/reference/search/request/sort.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ to. The `mode` option can have the following values:
8282
`median`:: Use the median of all values as sort value. Only applicable
8383
for number based array fields.
8484

85+
The default sort mode in the ascending sort order is `min` -- the lowest value
86+
is picked. The default sort mode in the descending order is `max` --
87+
the highest value is picked.
88+
8589
===== Sort mode example usage
8690

8791
In the example below the field price has multiple prices per document.

0 commit comments

Comments
 (0)