# How to use copy\_to on a nested field

**URL:** <https://discuss.elastic.co/t/how-to-use-copy-to-on-a-nested-field/19549>\
**Category:** Elasticsearch\
**Created:** [September 1, 2014, 10:14am UTC](https://discuss.elastic.co/t/how-to-use-copy-to-on-a-nested-field/19549 "2014-09-01T10:14:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Moisan](https://avatars.discourse-cdn.com/v4/letter/y/3d9bf3/32.png) [@Yann\_Moisan](https://discuss.elastic.co/u/Yann_Moisan)\
**Post date:** [September 1, 2014, 10:14am UTC](https://discuss.elastic.co/t/how-to-use-copy-to-on-a-nested-field/19549/1 "2014-09-01T10:14:26Z")

</div>

Is it possible to use copy\_to in a nested field :

Here is an extract of my mapping :

day: {  
type: nested  
properties: {  
weight: {  
index\_name: bzixtz2fng.day.weight  
type: double  
}  
value: {  
index\_name: bzixtz2fng.day.value  
type: string  
copy\_to: [  
raw\_words  
back  
]  
}  
}  
}

Why I don't find my doc when I search on back

{  
"query": {  
"term": {  
"back": "one"  
}  
}  
}

PS : Version 1.0.1

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b265191b-aa34-4074-9b62-a8f8a205e65d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b265191b-aa34-4074-9b62-a8f8a205e65d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:05am UTC](https://discuss.elastic.co/t/how-to-use-copy-to-on-a-nested-field/19549/2 "2017-07-06T01:05:12Z")

</div>


