[DOCS] Missing sort values now works for all field types
This commit is contained in:
parent
765bd026f5
commit
6d667e5d41
|
@ -9,7 +9,7 @@ field name for `_score` to sort by score.
|
|||
--------------------------------------------------
|
||||
{
|
||||
"sort" : [
|
||||
{ "post_date" : {"order" : "asc"} },
|
||||
{ "post_date" : {"order" : "asc"}},
|
||||
"user",
|
||||
{ "name" : "desc" },
|
||||
{ "age" : "desc" },
|
||||
|
@ -109,8 +109,9 @@ scripts and sorting by geo distance.
|
|||
|
||||
==== Missing Values
|
||||
|
||||
Numeric fields support specific handling for missing fields in a doc.
|
||||
The `missing` value can be `_last`, `_first`, or a custom value (that
|
||||
The `missing` parameter specifies how docs which are missing
|
||||
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:
|
||||
|
||||
[source,js]
|
||||
|
|
Loading…
Reference in New Issue