Skip to content

Commit

Permalink
[DOCS] Adds missing_bucket setting to transform APIs (#90111)
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve authored Sep 19, 2022
1 parent 3ed7a04 commit 45646b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/reference/rest-api/common-parms.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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[]

Expand Down
3 changes: 2 additions & 1 deletion docs/reference/transform/apis/preview-transform.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ POST _transform/_preview
"group_by": {
"customer_id": {
"terms": {
"field": "customer_id"
"field": "customer_id",
"missing_bucket": true
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/transform/apis/put-transform.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -309,7 +308,8 @@ PUT _transform/ecommerce_transform1
"group_by": {
"customer_id": {
"terms": {
"field": "customer_id"
"field": "customer_id",
"missing_bucket": true
}
}
},
Expand Down

0 comments on commit 45646b7

Please sign in to comment.