Spelling out the sort order options

Closes #9768
This commit is contained in:
Geoff Bourne 2015-02-19 11:04:14 -06:00 committed by Clinton Gormley
parent c9b8c22850
commit 0e09c02c56
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,17 @@ field name for `_score` to sort by score.
The sort values for each document returned are also returned as part of
the response.
==== Sort Order
The `order` option can have the following values:
[horizontal]
`asc`:: Sort in ascending order
`desc`:: Sort in descending order
The order defaults to `desc` when sorting on the `_score`, and defaults
to `asc` when sorting on anything else.
==== Sort mode option
Elasticsearch supports sorting by array or multi-valued fields. The `mode` option