diff --git a/docs/reference/rest-api/common-parms.asciidoc b/docs/reference/rest-api/common-parms.asciidoc index c750abb7c3ba1..419fe1e5ad908 100644 --- a/docs/reference/rest-api/common-parms.asciidoc +++ b/docs/reference/rest-api/common-parms.asciidoc @@ -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[] diff --git a/docs/reference/transform/apis/preview-transform.asciidoc b/docs/reference/transform/apis/preview-transform.asciidoc index 3045e7e11cdf0..a5d3c55e7c01e 100644 --- a/docs/reference/transform/apis/preview-transform.asciidoc +++ b/docs/reference/transform/apis/preview-transform.asciidoc @@ -286,7 +286,8 @@ POST _transform/_preview "group_by": { "customer_id": { "terms": { - "field": "customer_id" + "field": "customer_id", + "missing_bucket": true } } }, diff --git a/docs/reference/transform/apis/put-transform.asciidoc b/docs/reference/transform/apis/put-transform.asciidoc index 6cd40a341f703..338de46f06e37 100644 --- a/docs/reference/transform/apis/put-transform.asciidoc +++ b/docs/reference/transform/apis/put-transform.asciidoc @@ -154,7 +154,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 @@ -295,7 +294,8 @@ PUT _transform/ecommerce_transform1 "group_by": { "customer_id": { "terms": { - "field": "customer_id" + "field": "customer_id", + "missing_bucket": true } } },