From 9517c19fd57c2ff48e58573de36bcf686d41d8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Fri, 16 Oct 2020 11:43:57 +0200 Subject: [PATCH] [DOCS] Clarifies destination index mappings for Transforms. --- docs/reference/rest-api/common-parms.asciidoc | 6 +++++- docs/reference/transform/limitations.asciidoc | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/docs/reference/rest-api/common-parms.asciidoc b/docs/reference/rest-api/common-parms.asciidoc index 7db58905e4a7e..48cf9d3915dde 100644 --- a/docs/reference/rest-api/common-parms.asciidoc +++ b/docs/reference/rest-api/common-parms.asciidoc @@ -145,7 +145,11 @@ The destination for the {transform}. end::dest[] tag::dest-index[] -The _destination index_ for the {transform}. +The _destination index_ for the {transform}. The mappings of the destination +index are deduced based on the source fields when possible. If alternate +mappings are required, use the +https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html[Create index API] +prior to starting the {transform}. end::dest-index[] tag::dest-pipeline[] diff --git a/docs/reference/transform/limitations.asciidoc b/docs/reference/transform/limitations.asciidoc index deb676b7b615c..4570a93c427a2 100644 --- a/docs/reference/transform/limitations.asciidoc +++ b/docs/reference/transform/limitations.asciidoc @@ -56,11 +56,18 @@ or <>, <> will be used. In some instances the deduced mappings may be incompatible with the actual data. For example, numeric overflows might occur or dynamically mapped fields might contain both numbers -and strings. Please check {es} logs if you think this may have occurred. As a -workaround, you may define custom mappings prior to starting the -{transform}. For example, -<> or -<>. +and strings. Please check {es} logs if you think this may have occurred. + +You can view the deduced mappings by using the +https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html[Preview transform API]. +See the `generated_dest_index` object in the API response. + +If it's required, you may define custom mappings prior to starting the +{transform} by creating a custom destination index using the +https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html[Create index API]. +As deduced mappings cannot be overwritten by an index template, use the Create +index API to define custom mappings. The index templates only apply to fields +derived from scripts that use dynamic mappings. [discrete] [[transform-batch-limitations]]