# Elastic 1.7 multi\_field/copy\_to question

**URL:** <https://discuss.elastic.co/t/elastic-1-7-multi-field-copy-to-question/35583>\
**Category:** Elasticsearch\
**Created:** [November 25, 2015, 4:03pm UTC](https://discuss.elastic.co/t/elastic-1-7-multi-field-copy-to-question/35583 "2015-11-25T16:03:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Chambers1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_chambers1/32/43254_2.png) [@Matt\_Chambers1](https://discuss.elastic.co/u/Matt_Chambers1)\
**Post date:** [November 25, 2015, 4:03pm UTC](https://discuss.elastic.co/t/elastic-1-7-multi-field-copy-to-question/35583/1 "2015-11-25T16:03:36Z")

</div>

Hello,

I'm having this issue with multi\_field, not sure if I'm setting up the mapping right.I've changed the standard allayer to an edgeNGram with delimiter/standard/lowercase/stop filers.

I'm storing a full file path like /foo/bar/beer\_kettle\_01.jpg in the path field and it gets copy\_to to a keywords.level5 field.

```
      "properties": {
        "path": {
          "type": "string",
          "index" : "analyzed",
          "copy_to": "keywords.level5",
          "fields": {
            "raw": {
              "type": "string",
              "index": "not_analyzed"
            }

```

Keywords field.

```
    "keywords": {
      "properties": {
        "level5": {
          "type": "string",
          "index" : "analyzed",
          "fields": {
            "raw": {
              "type": "string",
              "index": "not_analyzed"
            }
          },

```

If I test the analyzer on my path, I clearly see "beer" is a word that is generated. However, if I do a query string search on keywords.level5 for "beer" I get no result. However, I do get a result from "beer\_kettle\_01.jpg"...so something is getting in there.

What I'm I doing wrong?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:35pm UTC](https://discuss.elastic.co/t/elastic-1-7-multi-field-copy-to-question/35583/2 "2017-07-05T23:35:50Z")

</div>


