[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" : [
|
"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]
|
||||||
|
|
Loading…
Reference in New Issue