[DOCS] Adds missing_bucket setting to transform APIs (#90111)

This commit is contained in:
István Zoltán Szabó 2022-09-19 15:22:48 +02:00 committed by GitHub
parent 3ed7a04d22
commit 45646b78e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -729,6 +729,9 @@ The following groupings are currently supported:
* <<_histogram,Histogram>>
* <<_terms,Terms>>
The grouping properties can optionally have a `missing_bucket` property. If
it's `true`, documents without a value in the respective `group_by` field are
included. Defaults to `false`.
--
end::pivot-group-by[]

View file

@ -297,7 +297,8 @@ POST _transform/_preview
"group_by": {
"customer_id": {
"terms": {
"field": "customer_id"
"field": "customer_id",
"missing_bucket": true
}
}
},

View file

@ -163,7 +163,6 @@ include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=pivot-aggs]
`group_by`:::
(Required, object)
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=pivot-group-by]
====
//End pivot
@ -309,7 +308,8 @@ PUT _transform/ecommerce_transform1
"group_by": {
"customer_id": {
"terms": {
"field": "customer_id"
"field": "customer_id",
"missing_bucket": true
}
}
},