[DOCS] Missing sort values now works for all field types

This commit is contained in:
Clinton Gormley 2013-09-04 22:06:38 +02:00
parent 765bd026f5
commit 6d667e5d41
1 changed files with 11 additions and 10 deletions

View File

@ -9,7 +9,7 @@ field name for `_score` to sort by score.
-------------------------------------------------- --------------------------------------------------
{ {
"sort" : [ "sort" : [
{ "post_date" : {"order" : "asc"} }, { "post_date" : {"order" : "asc"}},
"user", "user",
{ "name" : "desc" }, { "name" : "desc" },
{ "age" : "desc" }, { "age" : "desc" },
@ -109,8 +109,9 @@ scripts and sorting by geo distance.
==== Missing Values ==== Missing Values
Numeric fields support specific handling for missing fields in a doc. The `missing` parameter specifies how docs which are missing
The `missing` value can be `_last`, `_first`, or a custom value (that the field should be treated: The `missing` value can be
set to `_last`, `_first`, or a custom value (that
will be used for missing docs as the sort value). For example: will be used for missing docs as the sort value). For example:
[source,js] [source,js]