Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/reference/search/request/sort.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super small comment: I think this should be "min -- the lowest value" so it shows up as a dash instead of a hyphen.

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.
Expand Down