Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Adds missing_bucket setting to transform APIs (elastic#90111) (e…
Browse files Browse the repository at this point in the history
szabosteve authored Sep 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fa4d8f8 commit 23d2bee
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
@@ -730,6 +730,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[]

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

@@ -303,7 +302,8 @@ PUT _transform/ecommerce_transform1
"group_by": {
"customer_id": {
"terms": {
"field": "customer_id"
"field": "customer_id",
"missing_bucket": true
}
}
},

0 comments on commit 23d2bee

Please sign in to comment.