# Use copy\_to for multiple fields, but the analyzer for each field is different from the analyzer for search\_analyzer

**URL:** <https://discuss.elastic.co/t/use-copy-to-for-multiple-fields-but-the-analyzer-for-each-field-is-different-from-the-analyzer-for-search-analyzer/182747>\
**Category:** Elasticsearch\
**Created:** [May 25, 2019, 7:07am UTC](https://discuss.elastic.co/t/use-copy-to-for-multiple-fields-but-the-analyzer-for-each-field-is-different-from-the-analyzer-for-search-analyzer/182747 "2019-05-25T07:07:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zyuxing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zyuxing/32/44143_2.png) [@Zyuxing](https://discuss.elastic.co/u/Zyuxing)\
**Post date:** [May 25, 2019, 7:07am UTC](https://discuss.elastic.co/t/use-copy-to-for-multiple-fields-but-the-analyzer-for-each-field-is-different-from-the-analyzer-for-search-analyzer/182747/1 "2019-05-25T07:07:32Z")

</div>

Use copy\_to for multiple fields, but the analyzer for each field is different from the analyzer for search\_analyzer,Will they use the corresponding analyzer and search\_analyzer for each field

---

<div class="post-metadata">

**Author:** ![shin-higuchi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shin-higuchi/32/46524_2.png) [@shin-higuchi](https://discuss.elastic.co/u/shin-higuchi)\
**Post date:** [May 25, 2019, 2:55pm UTC](https://discuss.elastic.co/t/use-copy-to-for-multiple-fields-but-the-analyzer-for-each-field-is-different-from-the-analyzer-for-search-analyzer/182747/2 "2019-05-25T14:55:26Z")

</div>

Hi,  
If you define analyzer and search\_analyzer for each copied field, elasticsearch will use them.  
To understand your situation, could you share your mapping of your index?

Thanks.

---

<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:** [June 22, 2019, 2:55pm UTC](https://discuss.elastic.co/t/use-copy-to-for-multiple-fields-but-the-analyzer-for-each-field-is-different-from-the-analyzer-for-search-analyzer/182747/3 "2019-06-22T14:55:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
