Add information about the default sort mode (#40657)

This commit is contained in:
Mayya Sharipova 2019-03-30 10:56:23 -04:00
parent 862fe612e0
commit 1e90b29c00
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ to. The `mode` option can have the following values:
`median`:: Use the median of all values as sort value. Only applicable
for number based array fields.
The default sort mode in the ascending sort order is `min` -- the lowest value
is picked. The default sort mode in the descending order is `max` --
the highest value is picked.
===== Sort mode example usage
In the example below the field price has multiple prices per document.