Explorar o código

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

István Zoltán Szabó %!s(int64=3) %!d(string=hai) anos
pai
achega
45646b78e2

+ 3 - 0
docs/reference/rest-api/common-parms.asciidoc

@@ -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[]
 

+ 2 - 1
docs/reference/transform/apis/preview-transform.asciidoc

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

+ 2 - 2
docs/reference/transform/apis/put-transform.asciidoc

@@ -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
         }
       }
     },