From 2fb3fbd8309a7bd13c84428d5b9184cd87150790 Mon Sep 17 00:00:00 2001 From: Liam Thompson Date: Mon, 29 Jul 2024 19:22:08 +0200 Subject: [PATCH] More info about root and nest --- docs/reference/mapping/params/copy-to.asciidoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/reference/mapping/params/copy-to.asciidoc b/docs/reference/mapping/params/copy-to.asciidoc index 30c7010eefaa0..21eecbd804fc4 100644 --- a/docs/reference/mapping/params/copy-to.asciidoc +++ b/docs/reference/mapping/params/copy-to.asciidoc @@ -119,4 +119,7 @@ PUT /test_index -------------------------------------------------- <1> The `notes` field is copied to the `notes_raw` field. Targeting `notes_raw` alone instead of `description.notes_raw` -would lead to a `strict_dynamic_mapping_exception`. \ No newline at end of file +would lead to a `strict_dynamic_mapping_exception`. ++ +In this example, `notes_raw` is not defined at the root of the mapping, but under the `description` field. +Without the fully qualified path, {es} would interpret the `copy_to` target as a root-level field, not as a nested field under `description`. \ No newline at end of file