diff --git a/docs/plugins/mapper-attachments.asciidoc b/docs/plugins/mapper-attachments.asciidoc index 70d760e00b8..570d05a7513 100644 --- a/docs/plugins/mapper-attachments.asciidoc +++ b/docs/plugins/mapper-attachments.asciidoc @@ -173,39 +173,6 @@ In the above example, the actual content indexed is mapped under `fields` name ` it will only be available in the `_all` field. The other fields map to their respective metadata names, but there is no need to specify the `type` (like `text` or `date`) since it is already known. -[[mapper-attachments-copy-to]] -==== Copy To feature - -If you want to use https://www.elastic.co/guide/en/elasticsearch/reference/current/copy-to.html[copy_to] -feature, you need to define it on each sub-field you want to copy to another field: - -[source,js] --------------------------- -PUT /test/person/_mapping -{ - "person": { - "properties": { - "file": { - "type": "attachment", - "fields": { - "content": { - "type": "text", - "copy_to": "copy" - } - } - }, - "copy": { - "type": "text" - } - } - } -} --------------------------- -// CONSOLE - -In this example, the extracted content will be copy as well to `copy` field. - -[[mapper-attachments-querying-metadata]] ==== Querying or accessing metadata If you need to query on metadata fields, use the attachment field name dot the metadata field. For example: