Skip to content

Commit

Permalink
More info about root and nest
Browse files Browse the repository at this point in the history
  • Loading branch information
leemthompo committed Jul 29, 2024
1 parent 890213d commit 2fb3fbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/reference/mapping/params/copy-to.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
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`.

0 comments on commit 2fb3fbd

Please sign in to comment.