Skip to content

Commit

Permalink
[DOCS] Adds missing_bucket setting to transform APIs (elastic#90111)
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve committed Sep 19, 2022
1 parent b6d168b commit 199f5c4
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 @@ -725,6 +725,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 @@ -286,7 +286,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 @@ -155,7 +155,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 @@ -296,7 +295,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 199f5c4

Please sign in to comment.